forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction-dialog.html
34 lines (27 loc) · 924 Bytes
/
action-dialog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<md-dialog aria-label="Action">
<form>
<md-toolbar>
<div class="md-toolbar-tools">
<h2 ng-bind="action.title"></h2>
<span flex></span>
<md-button class="md-icon-button" ng-click="hide()">
<md-icon md-font-set="material-icons">close</md-icon>
</md-button>
</div>
</md-toolbar>
<md-dialog-content layout="column">
<div ng-if="!result.$resolved" flex layout="column" layout-align="center center">
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
<h3>Executing action...</h3>
</div>
<md-content ng-if="result.$resolved" class="md-padding">
<h2 ng-if="result.Error">Action Failed</h2>
<h2 ng-if="!result.Error && !result.Output">Action Succeeded</h2>
<pre ng-bind="result.Output"></pre>
</md-content>
</md-dialog-content>
<div class="md-actions" layout="row" layout-align="end center">
<md-button ng-click="hide()" class="md-primary">Close</md-button>
</div>
</form>
</md-dialog>