toaster: fix add layer button for Machines

Submitted by Reyna, David on April 5, 2017, 11:49 p.m. | Patch ID: 138837

Details

Message ID 1491436162-10849-1-git-send-email-david.reyna@windriver.com
State New
Headers show

Commit Message

Reyna, David April 5, 2017, 11:49 p.m.
From: David Reyna <David.Reyna@windriver.com>

Fix a missing close quote in the layer add button, and
use the layer index for the xhr_layer call.

[YOCTO #11213]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
---
 bitbake/lib/toaster/toastergui/templates/machine_btn.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/toaster/toastergui/templates/machine_btn.html b/bitbake/lib/toaster/toastergui/templates/machine_btn.html
index 12b5c96..6debe65 100644
--- a/bitbake/lib/toaster/toastergui/templates/machine_btn.html
+++ b/bitbake/lib/toaster/toastergui/templates/machine_btn.html
@@ -7,8 +7,8 @@ 
 <a class="btn btn-default btn-block layerbtn
 layer-add-{{data.layer_version.id}}" data-layer='{ "id":
    {{data.layer_version.id}}, "name":  "{{data.layer_version.layer.name}}",
-   "layerdetailurl": "{%url 'layerdetails' extra.pid data.layer_version.id %},
-   "xhrLayerUrl": "{% url "xhr_layer" extra.pid data.pk %}",
+   "layerdetailurl": "{%url 'layerdetails' extra.pid data.layer_version.id %}",
+   "xhrLayerUrl": "{% url "xhr_layer" extra.pid data.layer_version.id %}"
    }' data-directive="add"
     {% if data.layer_version.pk in extra.current_layers %}
     style="display:none;"