|
@@ -18,6 +18,15 @@
|
|
|
|
|
|
{{breadcrumb-bar breadcrumbs=breadcrumbs}}
|
|
{{breadcrumb-bar breadcrumbs=breadcrumbs}}
|
|
|
|
|
|
|
|
+{{#if actionResponse}}
|
|
|
|
+ <div class="col-md-12">
|
|
|
|
+ <div class="alert alert-dismissible {{if (eq actionResponse.type 'error') 'alert-danger' 'alert-success'}}" role="alert">
|
|
|
|
+ <button class="close" data-dismiss="alert" aria-label="Close" {{action "resetActionResponse"}}><span aria-hidden="true">×</span></button>
|
|
|
|
+ <strong>{{actionResponse.msg}}</strong>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+{{/if}}
|
|
|
|
+
|
|
<div class="panel-group">
|
|
<div class="panel-group">
|
|
<div class="panel panel-default">
|
|
<div class="panel panel-default">
|
|
<div class="yarn-app-header">
|
|
<div class="yarn-app-header">
|
|
@@ -64,18 +73,26 @@
|
|
|
|
|
|
<div class="flex-right">
|
|
<div class="flex-right">
|
|
<div class="links">
|
|
<div class="links">
|
|
- {{#if isRunningService}}
|
|
|
|
|
|
+ {{#if (or isRunningService isKillable)}}
|
|
<div class="btn-group">
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-unstyled dropdown-toggle" title="Settings" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<button type="button" class="btn btn-unstyled dropdown-toggle" title="Settings" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<i class="glyphicon glyphicon-cog" />
|
|
<i class="glyphicon glyphicon-cog" />
|
|
</button>
|
|
</button>
|
|
<ul class="dropdown-menu dropdown-menu-right">
|
|
<ul class="dropdown-menu dropdown-menu-right">
|
|
- <li>
|
|
|
|
- <a href="#" {{action "showStopServiceConfirm"}} target="_blank"><i class="glyphicon glyphicon-stop" /> Stop Service</a>
|
|
|
|
- </li>
|
|
|
|
- <li>
|
|
|
|
- <a href="#" target="_blank" {{action "showDeleteServiceConfirm"}}><i class="glyphicon glyphicon-trash" /> Delete Service </a>
|
|
|
|
- </li>
|
|
|
|
|
|
+ {{#if isRunningService}}
|
|
|
|
+ <li>
|
|
|
|
+ <a href="#" {{action "showStopServiceConfirm"}} target="_blank"><i class="glyphicon glyphicon-stop" /> Stop Service</a>
|
|
|
|
+ </li>
|
|
|
|
+ <li>
|
|
|
|
+ <a href="#" target="_blank" {{action "showDeleteServiceConfirm"}}><i class="glyphicon glyphicon-trash" /> Delete Service </a>
|
|
|
|
+ </li>
|
|
|
|
+ {{else if isKillable}}
|
|
|
|
+ <li>
|
|
|
|
+ <a href="#" {{action "showKillApplicationConfirm"}} target="_blank">
|
|
|
|
+ <i class="glyphicon glyphicon-stop" /> Kill Application
|
|
|
|
+ </a>
|
|
|
|
+ </li>
|
|
|
|
+ {{/if}}
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
@@ -147,3 +164,9 @@
|
|
message=(concat 'Are you sure you want to delete service "' model.serviceName '" for user "' model.app.user '" ?')
|
|
message=(concat 'Are you sure you want to delete service "' model.serviceName '" for user "' model.app.user '" ?')
|
|
action="deleteService"
|
|
action="deleteService"
|
|
}}
|
|
}}
|
|
|
|
+
|
|
|
|
+{{confirm-dialog
|
|
|
|
+ dialogId="killApplicationConfirmDialog"
|
|
|
|
+ message=(concat 'Are you sure you want to kill application "' model.app.id '"?')
|
|
|
|
+ action="killApplication"
|
|
|
|
+}}
|