fix(mail): handle folders that end with a question mark

We now avoid using NSURL.

Fixes #5303
This commit is contained in:
Francis Lachapelle
2021-05-18 13:34:46 -04:00
parent d0056d3b27
commit 657f00f92b
3 changed files with 37 additions and 45 deletions
@@ -273,11 +273,13 @@
};
this.share = function() {
var encodeURL = angular.bind(this.folder.constructor.$$resource,
this.folder.constructor.$$resource.encodeURL);
// Fetch list of ACL users
this.folder.$acl.$users().then(function() {
// Show ACL editor
$mdDialog.show({
templateUrl: $menuCtrl.folder.id + '/UIxAclEditor', // UI/Templates/UIxAclEditor.wox
templateUrl: encodeURL($menuCtrl.folder.id).join('/') + '/UIxAclEditor', // UI/Templates/UIxAclEditor.wox
controller: 'AclController', // from the ng module SOGo.Common
controllerAs: 'acl',
clickOutsideToClose: true,