From cfe725dbd3a0c09e1e979c395cfcf21be830de63 Mon Sep 17 00:00:00 2001 From: Rachel Breeze Date: Wed, 30 Oct 2019 17:49:10 +0000 Subject: [PATCH] Fix for #6315 where the loading banner continues to display if there is no current editor state --- .../components/editor/umbeditorheader.directive.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorheader.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorheader.directive.js index 5607251a7f36..efe65de8bf6f 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorheader.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorheader.directive.js @@ -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();