Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 209c50c585 | |||
| d726f5ffe9 | |||
| cecc1e4b52 |
+10
-3
@@ -249,8 +249,14 @@
|
||||
|
||||
};
|
||||
|
||||
scope.openCompositionsDialog = function() {
|
||||
|
||||
scope.isCompositionsDialogLoading = false;
|
||||
|
||||
scope.openCompositionsDialog = function() {
|
||||
if (scope.isCompositionsDialogLoading) {
|
||||
return;
|
||||
}
|
||||
scope.isCompositionsDialogLoading = true;
|
||||
scope.compositionsDialogModel = {
|
||||
contentType: scope.model,
|
||||
compositeContentTypes: scope.model.compositeContentTypes,
|
||||
@@ -267,7 +273,7 @@
|
||||
|
||||
// remove overlay
|
||||
editorService.close();
|
||||
|
||||
scope.isCompositionsDialogLoading = false;
|
||||
},
|
||||
close: function(oldModel) {
|
||||
|
||||
@@ -277,7 +283,7 @@
|
||||
|
||||
// remove overlay
|
||||
editorService.close();
|
||||
|
||||
scope.isCompositionsDialogLoading = false;
|
||||
},
|
||||
selectCompositeContentType: function (selectedContentType) {
|
||||
|
||||
@@ -356,6 +362,7 @@
|
||||
scope.compositionsDialogModel.totalContentTypes = parseInt(result, 10);
|
||||
})
|
||||
]).then(function() {
|
||||
scope.isCompositionsDialogLoading = false;
|
||||
//resolves when both other promises are done, now show it
|
||||
editorService.open(scope.compositionsDialogModel);
|
||||
scope.compositionsButtonState = "init";
|
||||
|
||||
Reference in New Issue
Block a user