Skip to content

Commit

Permalink
#70 Add a page for instances being in the WAITING FOR ANCESTOR state
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-zurczak committed Oct 19, 2015
1 parent 936eba1 commit 8fd842d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/app/instances/includes/app-waiting-for-ancestor.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<img src="img/state-starting.gif" alt="Waiting for ancestor..." />
<p>The following actions can be undertaken.</p>

<ul>
<li><a href="" ng-click="changeState( 'DEPLOYED_STOPPED' )">Stop this instance</a></li>
<li><a href="" ng-click="changeState( 'NOT_DEPLOYED' )">Undeploy it</a></li>
<li><a href="" ng-click="createChildInstance()">Create a child instance</a></li>
</ul>

<br />
<strong>Description</strong>
<br />

The instance is waiting for one of its ancestor to resolve its dependencies.
This instance will start automatically with its ancestors.
1 change: 1 addition & 0 deletions src/app/instances/instances.controller.listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
case 'DEPLOYED_STOPPED': result = 'deployed but stopped'; break;
case 'DEPLOYED_STARTED': result = 'deployed and started'; break;
case 'PROBLEM': result = 'undetermined'; break;
case 'WAITING_FOR_ANCESTOR': result = 'waiting for an ancestor to resolve its dependencies'; break;
case 'CUSTOM': result = 'being updated...'; break;
}

Expand Down

0 comments on commit 8fd842d

Please sign in to comment.