Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3BB2FE00D29; Thu, 29 Sep 2016 08:10:15 -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] * -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 * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [74.125.82.53 listed in dnsbl.sorbs.net] 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 DF17BE00A6D for ; Thu, 29 Sep 2016 08:10:10 -0700 (PDT) Received: by mail-wm0-f53.google.com with SMTP id b4so34519403wmb.0 for ; Thu, 29 Sep 2016 08:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=nFj1MAVIRAu85hR3DmGn1WalpnrfQTb6jydg0lTOGJM=; b=FqYPaEezVcOBNN0EHzvwQVgng0ICCj5YAUJ3+xTUW9G6s4Bnk8MeBjh6F2DCqNg+EB joYF6MB0AH6WtGVlbGxQGM/vBRg8NpLPto1HDs/EutiSla9SRmnH2gMZVecEiQ+jMg5C EaHlqZzGMLDjrlw6MHVyrmZtDw7W7DaEKNen4tH5zkOAvPiynn8sjdevESRjQrU80abW GQQBYo7CNuS4JIjyxzOann6ApFa0u83QB3ILHvlxBituWOr2f/sBqeGQwfZoSRLrChJW J6URZK3VmWh3nGvyNkwiOvElQ6elM1ID/G/IIUAbu0M1nPXVII2QF7IKYzOkUVgxXUkA r4kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=nFj1MAVIRAu85hR3DmGn1WalpnrfQTb6jydg0lTOGJM=; b=N6FTOnK1JqMJQ6WnPhY61oul9vlSk7obE/cdYq/Dk1iVq9Ke9xMRYKIOuQrqYI88bb asFaDhRyMbz4WjGk3Z1BRiasw0QDIz0Qx4R4P3pUFE8qtYJAhrVQddXcebSgwKDjkXKV FYqutpQk+ZBCIL8DSTM3ySVEZHk+zcEdUl1IFupQENAxmdZ6VK6b5nzuvbhFwR8Uflta Gbk4B5/JSrA0XOWOA+Wq0DNVeSEFR7j1rcW3JQfddlB38npPIYczacP20UQ2rOG+vDni K1z64uOfLZNtfs8dS2vK1gX3R6MRszN6JHdDFuW4EwuZeRdHUzIKI4HSBCLkcXJcVxsy 5XhA== X-Gm-Message-State: AA6/9Rk9Qk5tOtJkxK3U+erMnjYxq0i5YB2ZOqTwgknHSjN/aVEVNeZiokzsMt9WmMl66xY8 X-Received: by 10.28.87.16 with SMTP id l16mr3151567wmb.75.1475161809201; Thu, 29 Sep 2016 08:10:09 -0700 (PDT) Received: from [192.168.0.78] (host31-48-249-102.range31-48.btcentralplus.com. [31.48.249.102]) by smtp.googlemail.com with ESMTPSA id zz9sm12132017wjb.36.2016.09.29.08.10.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Sep 2016 08:10:08 -0700 (PDT) To: "toaster@yoctoproject.org" References: <1475161385-30443-1-git-send-email-michael.g.wood@intel.com> From: Michael Wood Message-ID: Date: Thu, 29 Sep 2016 16:10:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1475161385-30443-1-git-send-email-michael.g.wood@intel.com> Subject: Re: [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:10:15 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 29/09/16 16:03, Michael Wood wrote: > 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"); Ah, this shouldn't have had a "nocache=true" that was set for debugging. Will re-send patches. > } > }, > 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 @@ > }); > > > - > + > >