Add remount button for mountlike backup configs

This commit is contained in:
Johannes Zellner
2021-10-11 17:45:55 +02:00
parent 332158baaa
commit b089a1f580
5 changed files with 39 additions and 3 deletions

View File

@@ -440,8 +440,9 @@
<br/>
<div class="row">
<div class="col-md-12 text-right">
<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>
</div>
</div>
</div>