mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-24 04:45:24 +00:00
(js,html) Improve IMAP subscriptions manager
This commit is contained in:
@@ -187,7 +187,7 @@
|
||||
clickOutsideToClose: true,
|
||||
escapeToClose: true,
|
||||
locals: {
|
||||
srcApp: vm,
|
||||
metadataForFolder: metadataForFolder,
|
||||
srcAccount: account
|
||||
}
|
||||
}).finally(function() {
|
||||
@@ -197,16 +197,25 @@
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
SubscriptionsDialogController.$inject = ['$scope', '$mdDialog', 'srcApp', 'srcAccount'];
|
||||
function SubscriptionsDialogController($scope, $mdDialog, srcApp, srcAccount) {
|
||||
SubscriptionsDialogController.$inject = ['$scope', '$mdDialog', 'metadataForFolder', 'srcAccount'];
|
||||
function SubscriptionsDialogController($scope, $mdDialog, metadataForFolder, srcAccount) {
|
||||
var vm = this;
|
||||
|
||||
vm.app = srcApp;
|
||||
vm.account = new Account({id: srcAccount.id,
|
||||
name: srcAccount.name},
|
||||
true);
|
||||
vm.loading = true;
|
||||
vm.filter = { name: '' };
|
||||
vm.metadataForFolder = metadataForFolder;
|
||||
vm.account = new Account({
|
||||
id: srcAccount.id,
|
||||
name: srcAccount.name
|
||||
});
|
||||
vm.close = close;
|
||||
|
||||
|
||||
vm.account.$getMailboxes().then(function() {
|
||||
vm.loading = false;
|
||||
});
|
||||
|
||||
|
||||
function close() {
|
||||
$mdDialog.cancel();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user