Improve UX for pad deletion in the access modal

pull/1/head
yflory 5 years ago
parent 35b210e16c
commit e9ab860ae0

@ -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); }
});
});

@ -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();
}
});
};

Loading…
Cancel
Save