Avoid having two red action buttons in the uninstall view

This commit is contained in:
Johannes Zellner
2020-11-18 00:40:15 +01:00
parent 15b9ce0ee3
commit 8bbcb119ce

View File

@@ -1019,7 +1019,7 @@
<div class="col-md-12">
<label class="control-label">{{ 'app.uninstall.startStop.title' | tr }}</label>
<p>{{ 'app.uninstall.startStop.description' | tr }}</p>
<button class="btn btn-primary pull-right" ng-class="{ 'btn-danger': !uninstall.startButton }" ng-click="uninstall.toggleRunState()" ng-disabled="app.taskId || app.error || app.installationState === 'pending_start' || app.installationState === 'pending_stop'">
<button class="btn btn-default pull-right" ng-class="{ 'btn-primary': uninstall.startButton }" ng-click="uninstall.toggleRunState()" ng-disabled="app.taskId || app.error || app.installationState === 'pending_start' || app.installationState === 'pending_stop'">
<i ng-show="app.installationState === 'pending_start' || app.installationState === 'pending_stop'" class="fa fa-circle-notch fa-spin"></i>
{{ uninstall.startButton ? ('app.uninstall.startStop.startAction' | tr) : ('app.uninstall.startStop.stopAction' | tr) }}
</button>