]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: fix banner after customimage package add
authorDave Lerner <dave.lerner@windriver.com>
Thu, 25 Feb 2016 14:24:49 +0000 (14:24 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Feb 2016 17:17:24 +0000 (17:17 +0000)
Correct formatting of the banner message after adding a package to a
custom image.

[YOCTO #9101]

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/toaster/toastergui/static/js/customrecipe.js

index a1fe4862e5c7594c9002e8c085ca55fb518e3245..3c5789942047226bb537c7a57cd2e63042b14bbe 100644 (file)
@@ -127,7 +127,8 @@ function customRecipePageInit(ctx) {
       if (targetPkg.hasOwnProperty('depsAdded') &&
         targetPkg.depsAdded.length > 0) {
 
-        msg += "added " + (targetPkg.depsAdded.length + 1);
+        msg += "added ";
+        msg += "<strong>" + (targetPkg.depsAdded.length + 1) + "</strong>";
         msg += " packages to " + ctx.recipe.name + ": ";
         msg += "<strong>" + targetPkg.name + "</strong> and its dependencies";
 
@@ -150,7 +151,9 @@ function customRecipePageInit(ctx) {
           (targetPkg.depsAdded.length + 1) + " packages added");
 
       } else {
-        msg += ' <strong>' + targetPkg.name + '<strong>';
+        msg += "added <strong>1</strong>";
+        msg += " package to " + ctx.recipe.name + ": ";
+        msg += "<strong>" + targetPkg.name + "</strong>";
         inlineNotify.text("1 package added");
       }