diff --git a/src/components/settings_modal/admin_tabs/instance_tab.vue b/src/components/settings_modal/admin_tabs/instance_tab.vue
index 43ad4c8c98..96d8a17e0a 100644
--- a/src/components/settings_modal/admin_tabs/instance_tab.vue
+++ b/src/components/settings_modal/admin_tabs/instance_tab.vue
@@ -33,11 +33,81 @@
BACKGROUND IMAGE
+
+
+
+
{{ $t('admin_dash.instance.access') }}
+
-
PUBLIC
+ -
+
{{ $t('admin_dash.instance.restrict.header') }}
+
+ -
+
+ SEARCH RESTRICTION
+
+
+ -
+
{{ $t('admin_dash.instance.restrict.timelines') }}
+
+ -
+
+ LOCAL TIMELINES
+
+
+ -
+
+ FED TIMELINES
+
+
+ -
+
{{ $t('admin_dash.instance.restrict.profiles') }}
+
+ -
+
+ LOCAL PROFILES
+
+
+ -
+
+ FED PROFILES
+
+
+ -
+
{{ $t('admin_dash.instance.restrict.activities') }}
+
+ -
+
+ LOCAL STATUSES
+
+
+ -
+
+ FED STATUSES
+
+
@@ -52,13 +122,28 @@
INVITES ENABLED
+
+
+ BDEY REQUIRED
+
+
+ -
+
+ BDEY age of consent
+
+
+
+
ACTIVATION REQUIRED
diff --git a/src/components/settings_modal/helpers/boolean_setting.js b/src/components/settings_modal/helpers/boolean_setting.js
index 0df01d3184..199d3d0f02 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 07971b007c..6307d52622 100644
--- a/src/components/settings_modal/helpers/boolean_setting.vue
+++ b/src/components/settings_modal/helpers/boolean_setting.vue
@@ -4,13 +4,15 @@
class="BooleanSetting"
>
{{ backendDescriptionLabel }}
@@ -29,6 +31,7 @@
{{ backendDescriptionDescription + ' ' }}
diff --git a/src/components/settings_modal/helpers/draft_buttons.vue b/src/components/settings_modal/helpers/draft_buttons.vue
index 9e972b14c7..80da92e804 100644
--- a/src/components/settings_modal/helpers/draft_buttons.vue
+++ b/src/components/settings_modal/helpers/draft_buttons.vue
@@ -49,13 +49,13 @@