From c2966e640bbb6855e7e2a83ab855e745f689f7f2 Mon Sep 17 00:00:00 2001 From: Micah Fitch Date: Thu, 11 Feb 2021 20:11:21 -0600 Subject: [PATCH 01/16] allow custom offline status text --- .../frontend/shared/views/OfflineText.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/contentcuration/contentcuration/frontend/shared/views/OfflineText.vue b/contentcuration/contentcuration/frontend/shared/views/OfflineText.vue index 2dbcb8b8e2..0c23df89c8 100644 --- a/contentcuration/contentcuration/frontend/shared/views/OfflineText.vue +++ b/contentcuration/contentcuration/frontend/shared/views/OfflineText.vue @@ -13,7 +13,7 @@ - {{ $tr('offlineText') }} + {{ offlineText || $tr('offlineText') }} cloud_off - {{ $tr('offlineText') }} + {{ offlineText || $tr('offlineText') }}
cloud_off - {{ $tr('offlineText') }} + {{ offlineText || $tr('offlineText') }}
@@ -65,6 +65,10 @@ type: Number, default: 0, }, + offlineText: { + type: String, + default: null, + }, }, computed: { ...mapState({ From 70b021d6b7eafd572d16756a9cbf273cb2ed7cac Mon Sep 17 00:00:00 2001 From: Micah Fitch Date: Thu, 11 Feb 2021 20:13:32 -0600 Subject: [PATCH 02/16] preliminary offline status and connection error messages during registration --- .../frontend/accounts/pages/Create.vue | 25 +++++++++++++-- .../frontend/accounts/pages/Main.vue | 31 ++++++++++++++++--- 2 files changed, 49 insertions(+), 7 deletions(-) diff --git a/contentcuration/contentcuration/frontend/accounts/pages/Create.vue b/contentcuration/contentcuration/frontend/accounts/pages/Create.vue index 6e590d4142..ef4ba30254 100644 --- a/contentcuration/contentcuration/frontend/accounts/pages/Create.vue +++ b/contentcuration/contentcuration/frontend/accounts/pages/Create.vue @@ -5,6 +5,9 @@ :appBarText="$tr('backToLoginButton')" backButton > +
+ +
{{ registrationFailed ? $tr('registrationFailed') : $tr('errorsMessage') }} - + + {{ $tr('registrationFailedOffline') }} +

{{ $tr('basicInformationHeader') }} @@ -171,7 +176,7 @@