Move app start/stop to uninstall

This commit is contained in:
Johannes Zellner
2020-11-16 14:42:02 +01:00
parent 5d2f3d51bf
commit 5435f3f9c1
2 changed files with 33 additions and 33 deletions

View File

@@ -1101,19 +1101,6 @@
<a class="btn btn-primary pull-right" ng-href="{{ '/logs.html?appId=' + app.id }}" target="_blank">Logs</a>
</div>
</div>
<hr/>
<div class="row">
<div class="col-md-12">
<label class="control-label">Start / Stop</label>
<p>Apps can be stopped to conserve server resources. Future app backups will not include any app changes between now and the most recent app backup.
For this reason, it is recommended to trigger a backup before stopping the app.
</p>
<button class="btn btn-primary pull-right" ng-class="{ 'btn-danger': !console.startButton }" ng-click="console.toggleRunState()" ng-disabled="app.taskId || app.error || console.busyRunState" tooltip-enable="app.error || app.taskId" uib-tooltip="{{ app.error ? 'App is in error state' : 'App is busy' }}">
<i ng-show="app.installationState === 'pending_start' || app.installationState === 'pending_stop'" class="fa fa-circle-notch fa-spin"></i>
{{ console.startButton ? 'Start App' : 'Stop App' }}
</button>
</div>
</div>
</div>
<div class="card" ng-show="view === 'repair'">
@@ -1146,6 +1133,19 @@
</div>
<div class="card" ng-show="view === 'uninstall'">
<div class="row">
<div class="col-md-12">
<label class="control-label">Start / Stop</label>
<p>
Apps can be stopped to conserve server resources instead of unistallation. Future app backups will not include any app changes between now and the most recent app backup. For this reason, it is recommended to trigger a backup before stopping the app.
</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'">
<i ng-show="app.installationState === 'pending_start' || app.installationState === 'pending_stop'" class="fa fa-circle-notch fa-spin"></i>
{{ uninstall.startButton ? 'Start App' : 'Stop App' }}
</button>
</div>
</div>
<hr/>
<div class="row">
<div class="col-md-12">
<label class="control-label">Uninstall</label>