Move the tips to be tooltips like the other buttons

This commit is contained in:
Girish Ramakrishnan
2020-10-09 17:23:17 -07:00
parent 10aded5de4
commit 4432e65e8a
2 changed files with 2 additions and 12 deletions

View File

@@ -1000,17 +1000,7 @@
<span ng-show="!app.appStoreId" class="text-danger pull-right">Updates are not available for custom apps</span>
</div>
<div class="col-md-12" ng-show="config.update.apps[app.id].manifest.version && config.update.apps[app.id].manifest.version !== app.manifest.version && app.installationState !== 'pending_update'">
<button class="btn pull-right btn-success" ng-click="updates.askUpdate()" ng-hide="app.taskId || app.error || app.runState === 'stopped'">Update Available</button>
<!-- active apptask -->
<span class="text-danger pull-right" ng-show="app.taskId">The available update can only be applied after the current active task has finished.</span>
<!-- app in error state -->
<span class="text-danger pull-right" ng-show="app.error">The app cannot be updated if in error state.</span>
<!-- app not running -->
<span class="text-danger" ng-show="app.runState === 'stopped'">App is not running. First start the app, then apply the update.</span>
<button class="btn btn-primary pull-right" ng-show="app.runState === 'stopped'" ng-click="console.toggleRunState()">Start App</button>
<button type="button" class="btn btn-primary pull-right" ng-click="updates.askUpdate()" ng-disabled="app.taskId || app.error || app.runState === 'stopped'" tooltip-enable="app.error || app.taskId || app.runState === 'stopped'" uib-tooltip="{{ app.error ? 'App is in error state' : 'App is not running' }}">Update Available</button>
</div>
</div>
<hr/>