Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 86C5FE00D48; Thu, 29 Sep 2016 08:03:13 -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 * [209.85.215.51 listed in list.dnswl.org] * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.215.51 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-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4D204E00C72 for ; Thu, 29 Sep 2016 08:03:09 -0700 (PDT) Received: by mail-lf0-f51.google.com with SMTP id g62so82864091lfe.3 for ; Thu, 29 Sep 2016 08:03:09 -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=WliZ89PL2BEF3qzNk2RAqM9VSRZds7kPlyMZdUB1Bpk=; b=KJC3Ufp+fa0BG018cuLkAZGXtmk8CMnLeacakllWX1J50sDuJUEgymSTrrCeqqTvYA t0RdEOcDQLy4slzti6VHc2W4n7zxa61W4EsUPhNlIm40pW/m6LaAhRmB+Rvstf3DGtaB B2Xv3h7d/IEcwj4lDebZfhPykTsKjYzBMO2uEv65yS3TrTeFtntE0k/Hec8xemGYH+Wx Ax89YJWKr/0ohBOrzoKhXZ3RLhPM4nQKVl813VH5X6jiagyGyX2yay6V88/cRhiw/MS4 Xil7Z2zlMID25WjkB2S7vuAUEiuG074z4Eb77Pt/+BLG4h4181TiIz6GTorzPXh2xnCh NgPw== 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=WliZ89PL2BEF3qzNk2RAqM9VSRZds7kPlyMZdUB1Bpk=; b=dkpKci6xzeQuOX3Eb4Nysa/SEZnI6jgoXfmSaxfQ+DOjf7GjaL9edxNuXO/zLoO1yZ 37aSZBE/qbofCb2Dr8U2WhpLWZYvmnsNygMVsh4heC6mN+8+yUAX9WQ8qD63ynTumA4f UDcrREZT58XKDM4nPo5DT30FcA6WMiN/cWcTfOxAaIpkSajWzZLPXRtrPdIsqwm4gND2 pwz3y8wIeSEZrHydSjC+UMuyKwc+TxgYqcdZde1tWUbOrax1a4xl480y/qMqRxxyQq1R ALIpv7RvXukq/d1cOM7bYfG1SsHpTdonuemjyFAr3Xf6OONbHaSOFvC53SsXKETYc44P YXow== X-Gm-Message-State: AA6/9Rl2N/R5dqKhvXswzHZs3CojsmtVpK9viLGc9YwYNHGsWeWADmM2NBJ+bu7VMIXrIGIZ X-Received: by 10.194.72.168 with SMTP id e8mr1947634wjv.104.1475161388008; Thu, 29 Sep 2016 08:03:08 -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 z17sm15027513wmz.23.2016.09.29.08.03.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Sep 2016 08:03:07 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 29 Sep 2016 16:03:04 +0100 Message-Id: <1475161385-30443-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH 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:03:13 -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/customrecipe.js | 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 +++++- 6 files changed, 11 insertions(+), 5 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/customrecipe.js b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js index 9ea9602..7bf79a0 100644 --- a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js +++ b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js @@ -303,7 +303,7 @@ function customRecipePageInit(ctx) { libtoaster.setNotification("custom-image-recipe-deleted", msg.html()); - window.location.replace(data.gotoUrl); + window.location.replace(data.gotoUrl + "?nocache=true"); } }, error: function (data) { 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 @@ }); - +