From 2d0df5ecd846bc81f72d37ec385ed8b46ae17fd9 Mon Sep 17 00:00:00 2001 From: Kristijan Mitrovic Date: Tue, 8 Sep 2020 06:32:42 +0000 Subject: [PATCH] Sync Account Policy (#46) Merge branch 'master' into kris/sync_account_plan Fix UI to properly show account.sync flag Rename sync password to sync account Co-authored-by: Kristijan Mitrovic Reviewed-on: https://git.bubblev.org/bubblev/bubble-web/pulls/46 --- src/_pages/main/Layout.vue | 2 +- src/account/NewNetworkPage.vue | 10 +++++----- src/account/profile/ProfilePage.vue | 14 ++++++++------ 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/_pages/main/Layout.vue b/src/_pages/main/Layout.vue index 7f7b725..799f3c9 100644 --- a/src/_pages/main/Layout.vue +++ b/src/_pages/main/Layout.vue @@ -26,7 +26,7 @@ export default { }, sshKey: '', forkHost: '', - syncPassword: true, + syncAccount: true, launchLock: false, sendErrors: true, sendMetrics: true, diff --git a/src/account/NewNetworkPage.vue b/src/account/NewNetworkPage.vue index d923f25..16cc1f8 100644 --- a/src/account/NewNetworkPage.vue +++ b/src/account/NewNetworkPage.vue @@ -277,10 +277,10 @@ - - - - + + + + @@ -393,7 +393,7 @@ }, sshKey: '', forkHost: '', - syncPassword: true, + syncAccount: true, launchLock: false, sendErrors: true, sendMetrics: true diff --git a/src/account/profile/ProfilePage.vue b/src/account/profile/ProfilePage.vue index 4d29633..15479bf 100644 --- a/src/account/profile/ProfilePage.vue +++ b/src/account/profile/ProfilePage.vue @@ -79,10 +79,12 @@
- - -
{{ errors.first('syncPassword') }}
-

{{messages.field_label_sync_password_description}}

+ + +
+ {{ errors.first('sync') }} +
+

{{ messages.field_label_sync_account_description }}

@@ -119,7 +121,7 @@ locale: null, admin: null, suspended: null, - syncPassword: null, + sync: null, showBlockStats: null, autoUpdatePolicy: { jarUpdates: true, @@ -204,7 +206,7 @@ locale: this.subject.locale, admin: this.subject.admin, suspended: this.subject.suspended, - syncPassword: this.subject.syncPassword, + sync: this.subject.sync, autoUpdatePolicy: this.subject.autoUpdatePolicy }; this.submitted = true;