Skip to content

Commit

Permalink
fix(administration(js)): fix toast when saving ACLs
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed May 12, 2022
1 parent 373ac51 commit 1e9ae31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion UI/Templates/UIxTopnavToolbar.wox
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<md-tooltip><var:string label:value="Mail"/></md-tooltip>
</md-button>
<md-button class="md-icon-button"
ng-disabled="::baseURL.endsWith('/Administration/')"
ng-disabled="::baseURL.endsWith('/Administration')"
ng-show="::activeUser.isSuperUser"
var:ng-click="navButtonClick"
ng-href="{{::activeUser.path.administration}}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
/**
* @ngInject
*/
AdministrationAclController.$inject = ['$timeout', '$state', '$mdMedia', '$mdToast', 'stateUser', 'stateFolder', 'User'];
function AdministrationAclController($timeout, $state, $mdMedia, $mdToast, stateUser, stateFolder, User) {
AdministrationAclController.$inject = ['$timeout', '$state', '$mdMedia', '$mdToast', 'stateUser', 'stateFolder', 'sgConstant', 'User'];
function AdministrationAclController($timeout, $state, $mdMedia, $mdToast, stateUser, stateFolder, sgConstant, User) {
var vm = this;

vm.user = stateUser;
Expand Down Expand Up @@ -94,9 +94,9 @@
stateFolder.$acl.$saveUsersRights(stateFolder.owner).then(function() {
$mdToast.show(
$mdToast.simple()
.content(l('ACLs saved'))
.position('bottom right')
.hideDelay(3000)
.textContent(l('ACLs saved'))
.position(sgConstant.toastPosition)
.hideDelay(2000)
);
// Close acls on small devices
if ($mdMedia('xs'))
Expand Down

0 comments on commit 1e9ae31

Please sign in to comment.