Show console view in error state for the logs

disable the terminal button accordingly
This commit is contained in:
Girish Ramakrishnan
2019-12-20 15:41:50 -08:00
parent e8bc6e564d
commit da191d62cc
2 changed files with 4 additions and 4 deletions

View File

@@ -323,7 +323,7 @@
<div ng-click="setView('email')" ng-class="{ 'active': view === 'email', 'disabled': app.error }" ng-show="app.manifest.addons.sendmail || app.manifest.addons.recvmail">Email</div>
<div ng-click="setView('updates')" ng-class="{ 'active': view === 'updates', 'disabled': app.error }">Updates</div>
<div ng-click="setView('backups')" ng-class="{ 'active': view === 'backups', 'disabled': app.error }">Backups</div>
<div ng-click="setView('console')" ng-class="{ 'active': view === 'console', 'disabled': app.error }">Console</div>
<div ng-click="setView('console')" ng-class="{ 'active': view === 'console' }">Console</div>
<div ng-click="setView('repair')" ng-class="{ 'active': view === 'repair' }">Repair</div>
<div ng-click="setView('uninstall')" ng-class="{ 'active': view === 'uninstall' }">Uninstall</div>
</div>
@@ -733,7 +733,7 @@
<div class="col-md-12">
<label class="control-label">Console Access</label>
<p>This will open a console connection to the app. The terminal is sandboxed and only provides access to this app container's filesystem.</p>
<a class="btn btn-primary pull-right" ng-href="{{ app.health !== 'healthy' ? '' : '/terminal.html?id=' + app.id }}" ng-disabled="app.health !== 'healthy'" tooltip-class="long" tooltip-enable="app.health !== 'healthy'" uib-tooltip="App is not running. If app is constantly restarting, Repair it first." target="_blank">Terminal</a>
<a class="btn btn-primary pull-right" ng-href="{{ (app.installationState === 'installed' && app.health === 'healthy') ? '/terminal.html?id=' + app.id : '' }}" ng-disabled="app.installationState !== 'installed' || app.health !== 'healthy'" tooltip-class="long" tooltip-enable="app.installationState !== 'installed' || app.health !== 'healthy'" uib-tooltip="App is not running. If app is constantly restarting, Repair it first." target="_blank">Terminal</a>
<a class="btn btn-primary pull-right" ng-href="{{ '/logs.html?appId=' + app.id }}" target="_blank">Logs</a>
</div>
</div>