Document type: change button to umb-button

This commit is contained in:
Mads Rasmussen
2015-09-09 09:58:15 +02:00
parent dfa5b3344c
commit f2b3ae01a9
2 changed files with 14 additions and 5 deletions

View File

@@ -19,6 +19,7 @@
vm.contentType = {};
vm.page = {};
vm.page.loading = false;
vm.page.saveButtonState = "init";
vm.page.navigation = [
{
"name": "Design",
@@ -155,6 +156,8 @@
function performSave() {
vm.page.saveButtonState = "busy";
// reformat allowed content types to array if id's
vm.contentType.allowedContentTypes = contentTypeHelper.createIdArray(vm.contentType.allowedContentTypes);
@@ -179,6 +182,9 @@
init(dt);
syncTreeNode(vm.contentType, dt.path);
vm.page.saveButtonState = "success";
});
}

View File

@@ -34,11 +34,14 @@
<umb-editor-footer-content-right>
<div class="btn-group">
<button type="submit" data-hotkey="ctrl+s" class="btn btn-success">
<localize key="buttons_save">Save</localize>
</button>
</div>
<umb-button
type="submit"
state="vm.page.saveButtonState"
button-style="success"
shortcut="ctrl+s"
label="Save"
label-key="buttons_save">
</umb-button>
</umb-editor-footer-content-right>