From e9ab860ae0247bba344f3a87972f4c2a6944c630 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 7 Jul 2020 17:07:35 +0200 Subject: [PATCH] Improve UX for pad deletion in the access modal --- www/common/inner/access.js | 1 + www/common/proxy-manager.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/www/common/inner/access.js b/www/common/inner/access.js index 7abfd1035..2e1f4b4a8 100644 --- a/www/common/inner/access.js +++ b/www/common/inner/access.js @@ -909,6 +909,7 @@ define([ channel: data.channel }, function (err, obj) { spinner.done(); + UI.findCancelButton().click(); if (err || (obj && obj.error)) { UI.warn(Messages.error); } }); }); diff --git a/www/common/proxy-manager.js b/www/common/proxy-manager.js index f3ae4936c..bf7af8d39 100644 --- a/www/common/proxy-manager.js +++ b/www/common/proxy-manager.js @@ -892,6 +892,10 @@ define([ }).nThen(function () { // Remove deleted pads from the drive _delete(Env, { resolved: toDelete }, cb); + // If we were using the access modal, send a refresh command + if (data.channel) { + Env.Store.refreshDriveUI(); + } }); };