Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 084DEE0049A; Thu, 29 Sep 2016 08:16:28 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [74.125.82.53 listed in list.dnswl.org] * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [74.125.82.53 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id CBB02E002AC for ; Thu, 29 Sep 2016 08:16:24 -0700 (PDT) Received: by mail-wm0-f53.google.com with SMTP id w72so33329741wmf.1 for ; Thu, 29 Sep 2016 08:16:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=o9QkZhXqtteaA9Wn8MhcHPxiXW7SPw7jcbwofmcdspA=; b=eMlUKWC8R2UddZ8SsYlqhG71OXEsrKkmiYoPi9Nk1RWJ0JVrwy+ap0j0SDbPgRZ1fP vdDYqEFQOPDePf6m8jIFzNSLqiyZcMdqPm4eeZGUizX5bP2IOkyM08IhRF4hyQ3Movpp 5cTdRlABMEkL21/+L/DAZDal1xDbLMkH1jJUmb9rElNQl3Homx/Ry8iNwDr+Lat1MUZu Z5TosIZMJo9I64lezl54s0LktJaEjW4dBfy7SGlsKuT0jJvESjXuTMtOfdvsoaqMUQqN zQnzRn5GkxI2Q2I/Mu0ETMyrFy882DilsdkPacgzIP0YXx5E1aVrk18Kfu1LJxbE2Dra fx7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=o9QkZhXqtteaA9Wn8MhcHPxiXW7SPw7jcbwofmcdspA=; b=FKrGEm2+piSIzkgL58iLqMj2IX9lpmzuHMCNGVxJMi1GNuXg7YwYupHD4Jv/oPocsM vw7Oaqo7YGBzG8o4833IPPGLgpZsp+is8r8gb8Li9q0eGvBC800zzB45S5s+yN+hInxl OdaSMo9q/jno2s5PrgQ+t6LOx8+f98IOwmH0o3Zs26NNBtUxhoc/mjKVs2mQQFOdzH27 KJM6Pn89D2LXt/pQSNZDCS/MrRlzqcU0lnOt2rhoJATyv1e24sfLiwxiprBhsdXqmQlH 6hbZEzfarpDYXX3fpYs/lG7l73FnJ/8GldKQmpdgoMRRjjzuwbuoUixb5uOaPeNu42MF DGLw== X-Gm-Message-State: AA6/9RkkhwgQ5h7nTx/9DZ6VuqvHd77bC1Uf1RBmEKQ3zabXBGc4Y7aXcXC6qsEOKCJrmnuD X-Received: by 10.28.232.196 with SMTP id f65mr13182810wmi.2.1475162182764; Thu, 29 Sep 2016 08:16:22 -0700 (PDT) Received: from orion.home (host31-48-249-102.range31-48.btcentralplus.com. [31.48.249.102]) by smtp.gmail.com with ESMTPSA id e2sm14754135wjn.11.2016.09.29.08.16.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Sep 2016 08:16:22 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 29 Sep 2016 16:16:13 +0100 Message-Id: <1475162174-31647-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH v2 1/2] toaster: Delete notification update front end implementation to design X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 15:16:28 -0000 Update the delete notifications to reflect feedback from design review comments. Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastergui/api.py | 2 +- bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 2 ++ bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 2 +- bitbake/lib/toaster/toastergui/templates/base.html | 2 +- bitbake/lib/toaster/toastergui/templates/basebuildpage.html | 6 +++++- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/api.py b/bitbake/lib/toaster/toastergui/api.py index 3a05d66..d609ed9 100644 --- a/bitbake/lib/toaster/toastergui/api.py +++ b/bitbake/lib/toaster/toastergui/api.py @@ -221,7 +221,7 @@ class XhrLayer(View): return JsonResponse({ "error": "ok", - "gotoUrl": reverse('project', args=(kwargs['pid'],)) + "gotoUrl": reverse('projectlayers', args=(kwargs['pid'],)) }) diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js index 4c0d042..9ead393 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js @@ -392,6 +392,8 @@ function layerDetailsPageInit (ctx) { $("#layer-delete-confirmed").click(function(){ + $("#delete-layer-modal button[data-dismiss='modal']").hide(); + var message = $('You have deleted 1 layer from your project: '); message.find("#deleted-layer-name").text(ctx.layerVersion.name); diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index 0832ba4..86662b7 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js @@ -342,7 +342,7 @@ var libtoaster = (function () { } function _showChangeNotification(message){ - $(".alert").fadeOut().promise().done(function(){ + $(".alert-dismissible").fadeOut().promise().done(function(){ var alertMsg = $("#change-notification-msg"); alertMsg.html(message); diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index c1b1417..496dd6e 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html @@ -74,7 +74,7 @@ diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html index 0b6ef56..f5eee96 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html @@ -28,6 +28,8 @@ if (data.error !== "ok") { console.warn(data.error); } else { + libtoaster.setNotification("build-deleted", + $("#deleted-build-message").html()); window.location.replace(data.gotoUrl); } }, @@ -61,7 +63,9 @@ }); - +