mirror of https://github.com/status-im/consul.git
ui: actually render an error message, hide delete on root
cc/ @tiwilliam
This commit is contained in:
parent
d5a74e913a
commit
b0c7fa7749
|
@ -133,6 +133,11 @@
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<form class="form">
|
<form class="form">
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<p>{{errorMessage}}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div {{ bind-attr class=":form-group newKey.keyValid:valid" }}>
|
<div {{ bind-attr class=":form-group newKey.keyValid:valid" }}>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon">{{parentKey}}</span>
|
<span class="input-group-addon">{{parentKey}}</span>
|
||||||
|
@ -151,7 +156,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<button {{ action "createKey"}} {{bind-attr disabled=newKey.isInvalid }} {{ bind-attr class=":btn newKey.isValid:btn-success:btn-default" }}>Create</button>
|
<button {{ action "createKey"}} {{bind-attr disabled=newKey.isInvalid }} {{ bind-attr class=":btn newKey.isValid:btn-success:btn-default" }}>Create</button>
|
||||||
<button {{ action "deleteFolder"}} {{bind-attr disabled=isRoot }} {{ bind-attr class=":btn :pull-right isLoading:btn-warning:btn-danger" }}>Delete folder</button>
|
<button {{ action "deleteFolder"}} {{ bind-attr class=":btn :pull-right isLoading:btn-warning:btn-danger isRoot:hidden" }}>Delete folder</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue