Prevent double click errors when editing compositions
This commit is contained in:
committed by
Sebastiaan Janssen
parent
8fdc14f360
commit
d0e7344e2d
+3
@@ -17,6 +17,7 @@
|
|||||||
scope.sortableOptionsGroup = {};
|
scope.sortableOptionsGroup = {};
|
||||||
scope.sortableOptionsProperty = {};
|
scope.sortableOptionsProperty = {};
|
||||||
scope.sortingButtonKey = "general_reorder";
|
scope.sortingButtonKey = "general_reorder";
|
||||||
|
scope.compositionsButtonState = "init";
|
||||||
|
|
||||||
function activate() {
|
function activate() {
|
||||||
|
|
||||||
@@ -337,6 +338,7 @@
|
|||||||
})), function(f) {
|
})), function(f) {
|
||||||
return f !== null && f !== undefined;
|
return f !== null && f !== undefined;
|
||||||
});
|
});
|
||||||
|
scope.compositionsButtonState = "busy";
|
||||||
$q.all([
|
$q.all([
|
||||||
//get available composite types
|
//get available composite types
|
||||||
availableContentTypeResource(scope.model.id, [], propAliasesExisting).then(function (result) {
|
availableContentTypeResource(scope.model.id, [], propAliasesExisting).then(function (result) {
|
||||||
@@ -356,6 +358,7 @@
|
|||||||
]).then(function() {
|
]).then(function() {
|
||||||
//resolves when both other promises are done, now show it
|
//resolves when both other promises are done, now show it
|
||||||
editorService.open(scope.compositionsDialogModel);
|
editorService.open(scope.compositionsDialogModel);
|
||||||
|
scope.compositionsButtonState = "init";
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
icon="icon-merge"
|
icon="icon-merge"
|
||||||
action="openCompositionsDialog()"
|
action="openCompositionsDialog()"
|
||||||
size="xs"
|
size="xs"
|
||||||
add-ellipsis="true">
|
add-ellipsis="true"
|
||||||
|
state="compositionsButtonState">
|
||||||
</umb-button>
|
</umb-button>
|
||||||
|
|
||||||
<umb-button
|
<umb-button
|
||||||
|
|||||||
Reference in New Issue
Block a user