improvements to listsetting, added some localization strings
This commit is contained in:
parent
9c043533f2
commit
d7453c09b2
5 changed files with 24 additions and 6 deletions
|
|
@ -34,6 +34,13 @@ const InstanceTab = {
|
||||||
value: option
|
value: option
|
||||||
})))
|
})))
|
||||||
},
|
},
|
||||||
|
limitLocalContentOptions () {
|
||||||
|
const desc = get(this.$store.state.adminSettings.descriptions, [':pleroma', ':instance', ':limit_to_local_content'])
|
||||||
|
return new Set(desc.suggestions.map(option => ({
|
||||||
|
label: option !== 'false' ? this.$t('admin_dash.instance.' + option) : this.$t('general.no'),
|
||||||
|
value: option
|
||||||
|
})))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,8 @@
|
||||||
<ChoiceSetting
|
<ChoiceSetting
|
||||||
override-backend-description
|
override-backend-description
|
||||||
override-backend-description-label
|
override-backend-description-label
|
||||||
|
override-available-options
|
||||||
|
:options="limitLocalContentOptions"
|
||||||
path=":pleroma.:instance.:limit_to_local_content"
|
path=":pleroma.:instance.:limit_to_local_content"
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
|
|
@ -138,7 +140,8 @@
|
||||||
<ul class="setting-list">
|
<ul class="setting-list">
|
||||||
<li>
|
<li>
|
||||||
<ListSetting
|
<ListSetting
|
||||||
:override-available-options="providersOptions"
|
override-available-options
|
||||||
|
:options="providersOptions"
|
||||||
:path="[':pleroma','Pleroma.Web.Metadata', ':providers']"
|
:path="[':pleroma','Pleroma.Web.Metadata', ':providers']"
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<ListSetting
|
<ListSetting
|
||||||
:override-available-options="parsersOptions"
|
override-available-options
|
||||||
|
:options="parsersOptions"
|
||||||
path=":pleroma.:rich_media.:parsers"
|
path=":pleroma.:rich_media.:parsers"
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
|
|
@ -22,7 +23,8 @@
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<ListSetting
|
<ListSetting
|
||||||
:override-available-options="ttlSettersOptions"
|
override-available-options
|
||||||
|
:options="ttlSettersOptions"
|
||||||
path=":pleroma.:rich_media.:ttl_setters"
|
path=":pleroma.:rich_media.:ttl_setters"
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,10 @@ export default {
|
||||||
type: Boolean
|
type: Boolean
|
||||||
},
|
},
|
||||||
overrideAvailableOptions: {
|
overrideAvailableOptions: {
|
||||||
|
required: false,
|
||||||
|
type: Boolean
|
||||||
|
},
|
||||||
|
options: {
|
||||||
required: false,
|
required: false,
|
||||||
type: Set
|
type: Set
|
||||||
},
|
},
|
||||||
|
|
@ -70,7 +74,7 @@ export default {
|
||||||
builtinEntries () {
|
builtinEntries () {
|
||||||
if (this.ignoreSuggestions) return []
|
if (this.ignoreSuggestions) return []
|
||||||
if (this.overrideAvailableOptions) {
|
if (this.overrideAvailableOptions) {
|
||||||
return [...this.overrideAvailableOptions]
|
return [...this.options]
|
||||||
}
|
}
|
||||||
if (!this.suggestionsSet) return []
|
if (!this.suggestionsSet) return []
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1214,7 +1214,9 @@
|
||||||
"timelines": "Timelines access",
|
"timelines": "Timelines access",
|
||||||
"profiles": "User profiles access",
|
"profiles": "User profiles access",
|
||||||
"activities": "Statuses/activities access"
|
"activities": "Statuses/activities access"
|
||||||
}
|
},
|
||||||
|
":unauthenticated": "Unauthenticated",
|
||||||
|
":all": "Everyone"
|
||||||
},
|
},
|
||||||
"registrations": {
|
"registrations": {
|
||||||
"welcome": {
|
"welcome": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue