diff --git a/src/components/settings_modal/admin_tabs/instance_tab.js b/src/components/settings_modal/admin_tabs/instance_tab.js
index 4a2616599..7aaedbce8 100644
--- a/src/components/settings_modal/admin_tabs/instance_tab.js
+++ b/src/components/settings_modal/admin_tabs/instance_tab.js
@@ -14,7 +14,12 @@ library.add(
)
const InstanceTab = {
- data () {},
+ provide () {
+ return {
+ defaultDraftMode: true,
+ defaultSource: 'admin'
+ }
+ },
components: {
BooleanSetting,
ChoiceSetting,
diff --git a/src/components/settings_modal/admin_tabs/instance_tab.vue b/src/components/settings_modal/admin_tabs/instance_tab.vue
index 411982cc9..96d8a17e0 100644
--- a/src/components/settings_modal/admin_tabs/instance_tab.vue
+++ b/src/components/settings_modal/admin_tabs/instance_tab.vue
@@ -4,66 +4,108 @@
{{ $t('admin_dash.instance.instance') }}
-
-
+
NAME
-
-
+
ADMIN EMAIL
-
-
+
DESCRIPTION
-
-
+
SHORT DESCRIPTION
-
-
+
INSTANCE THUMBNAIL
-
-
+
BACKGROUND IMAGE
+
+
+
+
{{ $t('admin_dash.instance.access') }}
+
+ -
+
+ PUBLIC
+
+
+ -
+
{{ $t('admin_dash.instance.restrict.header') }}
+
+ -
+
+ SEARCH RESTRICTION
+
+
+ -
+
{{ $t('admin_dash.instance.restrict.timelines') }}
+
-
- PUBLIC
+ LOCAL TIMELINES
+
+
+ -
+
+ FED TIMELINES
+
+
+ -
+
{{ $t('admin_dash.instance.restrict.profiles') }}
+
+ -
+
+ LOCAL PROFILES
+
+
+ -
+
+ FED PROFILES
+
+
+ -
+
{{ $t('admin_dash.instance.restrict.activities') }}
+
+ -
+
+ LOCAL STATUSES
+
+
+ -
+
+ FED STATUSES
@@ -72,21 +114,15 @@
{{ $t('admin_dash.instance.registrations') }}
-
-
+
REGISTRATIONS OPEN
-
INVITES ENABLED
@@ -94,20 +130,27 @@
-
-
+
+ BDEY REQUIRED
+
+
+ -
+
+ BDEY age of consent
+
+
+
+
+ -
+
ACTIVATION REQUIRED
-
-
+
APPROVAL REQUIRED
@@ -115,32 +158,24 @@
{{ $t('admin_dash.instance.captcha_header') }}
-
-
+
CAPTCHA
-
CAPTCHA TYPE
VALID
@@ -152,11 +187,7 @@
>
{{ $t('admin_dash.instance.kocaptcha') }}
-
-
+
cockAPTCHA ENDPOINT
diff --git a/src/components/settings_modal/helpers/boolean_setting.js b/src/components/settings_modal/helpers/boolean_setting.js
index 0df01d318..199d3d0f0 100644
--- a/src/components/settings_modal/helpers/boolean_setting.js
+++ b/src/components/settings_modal/helpers/boolean_setting.js
@@ -3,13 +3,28 @@ import Setting from './setting.js'
export default {
...Setting,
+ props: {
+ ...Setting.props,
+ indeterminateState: [String, Object]
+ },
components: {
...Setting.components,
Checkbox
},
+ computed: {
+ ...Setting.computed,
+ isIndeterminate () {
+ return this.visibleState === this.indeterminateState
+ }
+ },
methods: {
...Setting.methods,
getValue (e) {
+ // Basic tri-state toggle implementation
+ if (!!this.indeterminateState && !e && this.visibleState === true) {
+ // If we have indeterminate state, switching from true to false first goes through indeterminate
+ return this.indeterminateState
+ }
return e
}
}
diff --git a/src/components/settings_modal/helpers/boolean_setting.vue b/src/components/settings_modal/helpers/boolean_setting.vue
index aedbf23e0..6307d5262 100644
--- a/src/components/settings_modal/helpers/boolean_setting.vue
+++ b/src/components/settings_modal/helpers/boolean_setting.vue
@@ -4,35 +4,37 @@
class="BooleanSetting"
>
- {{ backendDescriptionLabel + ' ' }}
+ {{ backendDescriptionLabel }}
- {{ ' ' }}
-
-
-
-
- {{ backendDescriptionDescription + ' ' }}
-
+
+
+
+
+ {{ backendDescriptionDescription + ' ' }}
+
diff --git a/src/components/settings_modal/helpers/choice_setting.js b/src/components/settings_modal/helpers/choice_setting.js
index 3ff81bc90..bdeece760 100644
--- a/src/components/settings_modal/helpers/choice_setting.js
+++ b/src/components/settings_modal/helpers/choice_setting.js
@@ -22,8 +22,7 @@ export default {
computed: {
...Setting.computed,
realOptions () {
- if (this.source === 'admin') {
- console.log(this.backendDescriptionSuggestions)
+ if (this.realSource === 'admin') {
return this.backendDescriptionSuggestions.map(x => ({
key: x,
value: x,
diff --git a/src/components/settings_modal/helpers/choice_setting.vue b/src/components/settings_modal/helpers/choice_setting.vue
index 55f9a62ca..8713acf56 100644
--- a/src/components/settings_modal/helpers/choice_setting.vue
+++ b/src/components/settings_modal/helpers/choice_setting.vue
@@ -11,7 +11,7 @@
{{ ' ' }}