Prevent double click errors when editing compositions

This commit is contained in:
Kenn Jacobsen
2019-08-18 21:40:27 +02:00
committed by Sebastiaan Janssen
parent 8fdc14f360
commit d0e7344e2d
2 changed files with 5 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
scope.sortableOptionsGroup = {};
scope.sortableOptionsProperty = {};
scope.sortingButtonKey = "general_reorder";
scope.compositionsButtonState = "init";
function activate() {
@@ -337,6 +338,7 @@
})), function(f) {
return f !== null && f !== undefined;
});
scope.compositionsButtonState = "busy";
$q.all([
//get available composite types
availableContentTypeResource(scope.model.id, [], propAliasesExisting).then(function (result) {
@@ -356,6 +358,7 @@
]).then(function() {
//resolves when both other promises are done, now show it
editorService.open(scope.compositionsDialogModel);
scope.compositionsButtonState = "init";
});
};

View File

@@ -14,7 +14,8 @@
icon="icon-merge"
action="openCompositionsDialog()"
size="xs"
add-ellipsis="true">
add-ellipsis="true"
state="compositionsButtonState">
</umb-button>
<umb-button