Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuka Trovic <luka@nextcloud.com>2021-12-30 09:41:56 +0300
committerLuka Trovic <luka@nextcloud.com>2022-01-13 15:25:00 +0300
commit90e54e4e4b1e4a4828433b73274469faf333a705 (patch)
tree7453bb8db415ce58275bfddb3454b19c73045923 /src
parent833fcfbd19279c92cf74f1fda1d0080df74c406b (diff)
update offline state message when saving
Signed-off-by: Luka Trovic <luka@nextcloud.com>
Diffstat (limited to 'src')
-rw-r--r--src/components/EditorWrapper.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/EditorWrapper.vue b/src/components/EditorWrapper.vue
index 5ba0b93c4..b01b31857 100644
--- a/src/components/EditorWrapper.vue
+++ b/src/components/EditorWrapper.vue
@@ -184,6 +184,9 @@ export default {
return this.$store.state.showAuthorAnnotations
},
lastSavedStatus() {
+ if (this.hasConnectionIssue) {
+ return t('text', this.isMobile ? 'Offline' : 'Offline, changes will be saved when online')
+ }
return this.dirtyStateIndicator ? t('text', 'Saving …') : t('text', 'Saved')
},
lastSavedStatusClass() {