allow app to be set as mailbox owner

This commit is contained in:
Girish Ramakrishnan
2021-12-02 22:21:25 -08:00
parent 2ecdfcdbd2
commit b9b2ebe202
2 changed files with 7 additions and 1 deletions

View File

@@ -813,6 +813,11 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
$scope.owners.push({ display: g.name, id: g.id, type: 'group' });
});
$scope.owners.push({ header: true, display: $translate.instant('email.mailboxboxDialog.appsHeader') });
Client.getInstalledApps().forEach(function (a) {
if (a.manifest.addons && a.manifest.addons.recvmail) $scope.owners.push({ display: a.label || a.fqdn, id: a.id, type: 'app' });
});
Client.getDomains(function (error, result) {
if (error) return console.error('Unable to get view domain.', error);