Fixup debug tab

This commit is contained in:
Girish Ramakrishnan
2019-09-19 12:50:06 -07:00
parent 466086b509
commit 1c797505ae
+22 -8
View File
@@ -583,19 +583,33 @@
<div class="card" ng-show="view === 'debug'">
<div class="row">
<div class="col-md-12">
<label class="control-label">Status</label>
<p>
{{ app.manifest.title }}
<span class="app-info-meta text-small">{{ app.upstreamVersion }} (Package <a ng-href="/#/appstore/{{app.manifest.id}}?version={{app.manifest.version}}">v{{ app.manifest.version }}</a>) </span>
<br/>
App ID <span class="app-info-meta text-small">{{ app.id }}</a> </span>
Version
<span class="app-info-meta text-small">{{ app.upstreamVersion }} (Package <a ng-href="/#/appstore/{{app.manifest.id}}?version={{app.manifest.version}}">v{{ app.manifest.version }}</a>) </span>
<br/>
App ID <span class="app-info-meta text-small">{{ app.id }}</a> </span>
</p>
<button class="btn btn-danger" ng-click="debug.stopAppTask(app.taskId)" ng-disabled="!app.taskId">Cancel Current Task</button>
<button class="btn btn-danger" ng-click="debug.restartApp()" ng-disabled="app.taskId || debug.appIsRestarting"><i class="fa fa-circle-notch fa-spin" ng-show="debug.appIsRestarting"></i> Restart App</button>
<a class="btn btn-primary pull-right" ng-href="{{ '/terminal.html?id=' + app.id }}" target="_blank">Terminal</a>
</div>
</div>
<hr/>
<div class="row">
<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 the app container's filesystem.</p>
<a class="btn btn-primary pull-right" ng-href="{{ '/terminal.html?id=' + app.id }}" target="_blank">Open Terminal</a>
<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">Repair</label>
<p>If the app is not responding, try restarting the app.</p>
<button class="btn btn-danger pull-right" ng-click="debug.stopAppTask(app.taskId)" ng-show="app.taskId">Cancel Current Task</button>
<button class="btn btn-danger pull-right" ng-click="debug.restartApp()" ng-disabled="app.taskId || debug.appIsRestarting"><i class="fa fa-circle-notch fa-spin" ng-show="debug.appIsRestarting"></i> Restart App</button>
</div>
</div>
</div>
<div class="card" ng-show="view === 'uninstall'">