Use isAtleastOwner instead of role directly

This commit is contained in:
Girish Ramakrishnan
2021-12-02 09:32:02 -08:00
parent 2c5b3d2c07
commit 6617ecb114
6 changed files with 11 additions and 11 deletions

View File

@@ -441,8 +441,8 @@
<div class="row">
<div class="col-md-12">
<button class="btn btn-outline btn-primary pull-right" ng-show="user.role === 'owner'" ng-click="configureBackup.show()">{{ 'backups.location.configure' | tr }}</button>
<button class="btn btn-outline btn-default pull-right" ng-show="user.role === 'owner' && mountlike(backupConfig.provider)" ng-disabled="remount.busy" ng-click="remount.submit()"><i class="fa fa-circle-notch fa-spin" ng-show="remount.busy"></i> {{ 'backups.location.remount' | tr }}</button>
<button class="btn btn-outline btn-primary pull-right" ng-show="user.isAtleastOwner" ng-click="configureBackup.show()">{{ 'backups.location.configure' | tr }}</button>
<button class="btn btn-outline btn-default pull-right" ng-show="user.isAtleastOwner && mountlike(backupConfig.provider)" ng-disabled="remount.busy" ng-click="remount.submit()"><i class="fa fa-circle-notch fa-spin" ng-show="remount.busy"></i> {{ 'backups.location.remount' | tr }}</button>
</div>
</div>
</div>
@@ -472,7 +472,7 @@
<br/>
<div class="row">
<div class="col-md-12 text-right">
<button class="btn btn-outline btn-primary pull-right" ng-show="user.role === 'owner'" ng-click="configureScheduleAndRetention.show()">{{ 'backups.schedule.configure' | tr }}</button>
<button class="btn btn-outline btn-primary pull-right" ng-show="user.isAtleastOwner" ng-click="configureScheduleAndRetention.show()">{{ 'backups.schedule.configure' | tr }}</button>
</div>
</div>
</div>