Document type: change button to umb-button
This commit is contained in:
@@ -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";
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user