Allow app to be (re)configured after error

This is the only way to move forward should reconfigure error for
some weird reason

Fixes #220
This commit is contained in:
Girish Ramakrishnan
2015-02-27 00:27:44 -08:00
parent f2fc845b0b
commit c9a64e342d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
<li class="list-group-item">Access Restriction<span class="pull-right">{{ app.accessRestriction | accessRestrictionLabel }}</span></li>
</ul>
<a class="btn btn-outline btn-primary pull-left" ng-show="app.installationState === 'installed'" ng-href="#/app/{{app.id}}/configure">Configure</a>
<a class="btn btn-outline btn-primary pull-left" ng-show="!/pending_.*/.test(app.installationState)" ng-href="#/app/{{app.id}}/configure">Configure</a>
<button class="btn btn-outline btn-primary pull-left" ng-show="app.installationState === 'installed' && (app.runState === 'stopped' || app.runState === 'error')" ng-click="startApp()">Start</button>
<button class="btn btn-outline btn-danger pull-left" ng-show="app.installationState === 'installed' && app.runState === 'running'" ng-click="stopApp()">Stop</button>
<button class="btn btn-outline btn-danger pull-right" data-toggle="modal" data-target="#uninstallAppModal">Uninstall</button>
+1 -1
View File
@@ -26,7 +26,7 @@
<li class="list-group-item">Access Restriction<span class="pull-right">{{ app.accessRestriction | accessRestrictionLabel }}</span></li>
</ul>
<a class="btn btn-outline btn-primary pull-left" ng-show="app.installationState === 'installed'" ng-href="#/app/{{app.id}}/configure">Configure</a>
<a class="btn btn-outline btn-primary pull-left" ng-show="!/pending_.*/.test(app.installationState)" ng-href="#/app/{{app.id}}/configure">Configure</a>
<button class="btn btn-outline btn-primary pull-left" ng-show="app.installationState === 'installed' && (app.runState === 'stopped' || app.runState === 'error')" ng-click="startApp()">Start</button>
<button class="btn btn-outline btn-danger pull-left" ng-show="app.installationState === 'installed' && app.runState === 'running'" ng-click="stopApp()">Stop</button>
<button class="btn btn-outline btn-danger pull-right" data-toggle="modal" data-target="#uninstallAppModal">Uninstall</button>