diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-01-19 17:27:35 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-23 11:33:52 +0000 |
commit | bdbc37f5c636d0dbb58bbe4c6d0a026216cb5a3c (patch) | |
tree | d9185fc966f6dfce585330d50750a8506cd437d4 /bitbake | |
parent | 99bbf30b1da86c0c0d3e0df9bf9476c3cde45920 (diff) | |
download | poky-bdbc37f5c636d0dbb58bbe4c6d0a026216cb5a3c.tar.gz |
bitbake: toastergui: "Run again" button in build pages
This patch fixes the "Run again" button for the completed builds.
[YOCTO #7173]
(Bitbake rev: 37125f2b52492f8bee465611e60514b365541892)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/projectapp.js | 2 | ||||
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/projectapp.js b/bitbake/lib/toaster/toastergui/static/js/projectapp.js index 0bdc55a733..74471a1a51 100644 --- a/bitbake/lib/toaster/toastergui/static/js/projectapp.js +++ b/bitbake/lib/toaster/toastergui/static/js/projectapp.js | |||
@@ -339,7 +339,7 @@ projectApp.controller('prjCtrl', function($scope, $modal, $http, $interval, $loc | |||
339 | $scope.buildExistingTarget = function(targets) { | 339 | $scope.buildExistingTarget = function(targets) { |
340 | var oldTargetName = $scope.targetName; | 340 | var oldTargetName = $scope.targetName; |
341 | $scope.targetName = targets.map(function(v,i,a){return v.target}).join(' '); | 341 | $scope.targetName = targets.map(function(v,i,a){return v.target}).join(' '); |
342 | $scope.targetNamedBuild(); | 342 | $scope.buildNamedTarget(); |
343 | $scope.targetName = oldTargetName; | 343 | $scope.targetName = oldTargetName; |
344 | } | 344 | } |
345 | 345 | ||
diff --git a/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html b/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html index d4959a0b52..da5a3f7f74 100644 --- a/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html +++ b/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html | |||
@@ -53,8 +53,8 @@ | |||
53 | <span class="lead{%if not MANAGED or not build.project%} pull-right{%endif%}"> | 53 | <span class="lead{%if not MANAGED or not build.project%} pull-right{%endif%}"> |
54 | Build time: <a href="{% url 'buildtime' build.pk %}">{{ build.timespent|sectohms }}</a> | 54 | Build time: <a href="{% url 'buildtime' build.pk %}">{{ build.timespent|sectohms }}</a> |
55 | </span> | 55 | </span> |
56 | {% if MANAGED and build.project %} | 56 | {% if build.project %} |
57 | <a class="btn {%if build.outcome == build.SUCCEEDED%}btn-success{%elif build.outcome == build.FAILED%}btn-danger{%else%}btn-info{%endif%} pull-right" onclick="scheduleBuild({% url 'xhr_projectbuild' build.project.id as bpi%}{{bpi|json}}, {{build.project.name|json}}, {{build.get_sorted_target_list|mapselect:'target'|json}})">Run again</a> | 57 | <button class="btn {%if build.outcome == build.SUCCEEDED%}btn-success{%elif build.outcome == build.FAILED%}btn-danger{%else%}btn-info{%endif%} pull-right" onclick='scheduleBuild({% url 'xhr_projectbuild' build.project.id as bpi%}{{bpi|json}}, {{build.project.name|json}}, {{build.get_sorted_target_list|mapselect:'target'|json}})'>Run again</button> |
58 | {% endif %} | 58 | {% endif %} |
59 | </div> | 59 | </div> |
60 | {%endif%} | 60 | {%endif%} |