From 42e448177658c1fad4bfe637beaf7d7d991b4945 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 5 Feb 2018 12:22:03 +0300 Subject: [PATCH] Set long operation mask for plugins actions (action.id is string). --- apps/documenteditor/main/app/controller/Main.js | 6 ++++++ apps/documenteditor/mobile/app/controller/Main.js | 6 ++++++ apps/presentationeditor/main/app/controller/Main.js | 6 ++++++ apps/presentationeditor/mobile/app/controller/Main.js | 6 ++++++ apps/spreadsheeteditor/main/app/controller/Main.js | 5 +++++ apps/spreadsheeteditor/mobile/app/controller/Main.js | 6 ++++++ 6 files changed, 35 insertions(+) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index f1e71bd65..52158cf1a 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -754,6 +754,12 @@ define([ title = this.loadingDocumentTitleText; text = this.loadingDocumentTextText; break; + default: + if (typeof action.id == 'string'){ + title = action.id; + text = action.id; + } + break; } if (action.type == Asc.c_oAscAsyncActionType['BlockInteraction']) { diff --git a/apps/documenteditor/mobile/app/controller/Main.js b/apps/documenteditor/mobile/app/controller/Main.js index 2be081442..3d0cedd5f 100644 --- a/apps/documenteditor/mobile/app/controller/Main.js +++ b/apps/documenteditor/mobile/app/controller/Main.js @@ -442,6 +442,12 @@ define([ title = me.loadingDocumentTitleText; text = me.loadingDocumentTextText; break; + default: + if (typeof action.id == 'string'){ + title = action.id; + text = action.id; + } + break; } if (action.type == Asc.c_oAscAsyncActionType['BlockInteraction']) { diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 6f81aff74..b89ee8df4 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -540,6 +540,12 @@ define([ title = this.loadingDocumentTitleText; text = this.loadingDocumentTextText; break; + default: + if (typeof action.id == 'string'){ + title = action.id; + text = action.id; + } + break; } if (action.type == Asc.c_oAscAsyncActionType['BlockInteraction']) { diff --git a/apps/presentationeditor/mobile/app/controller/Main.js b/apps/presentationeditor/mobile/app/controller/Main.js index 69d23b5c1..e629e88f1 100644 --- a/apps/presentationeditor/mobile/app/controller/Main.js +++ b/apps/presentationeditor/mobile/app/controller/Main.js @@ -425,6 +425,12 @@ define([ title = me.loadingDocumentTitleText; text = me.loadingDocumentTextText; break; + default: + if (typeof action.id == 'string'){ + title = action.id; + text = action.id; + } + break; } if (action.type == Asc.c_oAscAsyncActionType['BlockInteraction']) { diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 92dfbc780..e59fac42a 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -557,6 +557,11 @@ define([ case LoadingDocument: title = this.loadingDocumentTitleText; break; + default: + if (typeof action.id == 'string'){ + title = action.id; + } + break; } if (action.type == Asc.c_oAscAsyncActionType.BlockInteraction) { diff --git a/apps/spreadsheeteditor/mobile/app/controller/Main.js b/apps/spreadsheeteditor/mobile/app/controller/Main.js index 5c2bb4b17..98ce0a370 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Main.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Main.js @@ -440,6 +440,12 @@ define([ title = me.loadingDocumentTitleText; text = me.loadingDocumentTextText; break; + default: + if (typeof action.id == 'string'){ + title = action.id; + text = action.id; + } + break; } if (action.type == Asc.c_oAscAsyncActionType.BlockInteraction) {