Fix for #6315 where the loading banner continues to display if there is no current editor state

This commit is contained in:
Rachel Breeze
2019-10-30 17:49:10 +00:00
committed by Sebastiaan Janssen
parent 5c82968829
commit ce0833719b

View File

@@ -239,12 +239,13 @@ Use this directive to construct a header inside the main editor window.
if (scope.editorfor) {
localizeVars.push(scope.editorfor);
}
localizationService.localizeMany(localizeVars).then(function (data) {
localizationService.localizeMany(localizeVars).then(function(data) {
setAccessibilityForEditor(data);
scope.loading = false;
});
} else {
scope.loading = false;
}
scope.goBack = function () {
if (scope.onBack) {
scope.onBack();