From 0378aadd58f8fddb655c29eb6a664d2e061397e5 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Tue, 4 Aug 2015 16:07:09 +0100 Subject: bitbake: toastergui: remove project name from layer change notification The project name is always a link to the basic configuration page, which looks quite silly when you change layers from that page. Since I guess the idea is reusing those notifications everywhere, I've replaced the project name with a generic 'to your project' / 'from your project', so that they read right no matter where you see them. (Bitbake rev: 59bcafa712b9a16b647bd26b3bd738ae6fc21eaa) Signed-off-by: Belen Barros Pena Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index 22377f08f4..7edd0190f3 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js @@ -280,7 +280,7 @@ var libtoaster = (function (){ var alertMsg; if (layerDepsList.length > 0 && add === true) { - alertMsg = $("You have added "+(layerDepsList.length+1)+" layers to : and its dependencies "); + alertMsg = $("You have added "+(layerDepsList.length+1)+" layers to your project: and its dependencies "); /* Build the layer deps list */ layerDepsList.map(function(layer, i){ @@ -296,15 +296,13 @@ var libtoaster = (function (){ alertMsg.append(link); }); } else if (layerDepsList.length === 0 && add === true) { - alertMsg = $("You have added 1 layer to : "); + alertMsg = $("You have added 1 layer to your project: "); } else if (add === false) { - alertMsg = $("You have deleted 1 layer from : "); + alertMsg = $("You have deleted 1 layer from your project: "); } alertMsg.children("#layer-affected-name").text(layer.name); alertMsg.children("#layer-affected-name").attr("href", layer.layerdetailurl); - alertMsg.children("#project-affected-name").text(libtoaster.ctx.projectName); - alertMsg.children("#project-affected-name").attr("href", libtoaster.ctx.projectPageUrl); return alertMsg.html(); } -- cgit v1.2.3-54-g00ecf