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
|
||||
})))
|
||||
},
|
||||
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
|
||||
override-backend-description
|
||||
override-backend-description-label
|
||||
override-available-options
|
||||
:options="limitLocalContentOptions"
|
||||
path=":pleroma.:instance.:limit_to_local_content"
|
||||
/>
|
||||
</li>
|
||||
|
|
@ -138,9 +140,10 @@
|
|||
<ul class="setting-list">
|
||||
<li>
|
||||
<ListSetting
|
||||
:override-available-options="providersOptions"
|
||||
override-available-options
|
||||
:options="providersOptions"
|
||||
:path="[':pleroma','Pleroma.Web.Metadata', ':providers']"
|
||||
/>
|
||||
/>
|
||||
</li>
|
||||
<li>
|
||||
<BooleanSetting
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
</li>
|
||||
<li>
|
||||
<ListSetting
|
||||
:override-available-options="parsersOptions"
|
||||
override-available-options
|
||||
:options="parsersOptions"
|
||||
path=":pleroma.:rich_media.:parsers"
|
||||
/>
|
||||
</li>
|
||||
|
|
@ -22,7 +23,8 @@
|
|||
</li>
|
||||
<li>
|
||||
<ListSetting
|
||||
:override-available-options="ttlSettersOptions"
|
||||
override-available-options
|
||||
:options="ttlSettersOptions"
|
||||
path=":pleroma.:rich_media.:ttl_setters"
|
||||
/>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,10 @@ export default {
|
|||
type: Boolean
|
||||
},
|
||||
overrideAvailableOptions: {
|
||||
required: false,
|
||||
type: Boolean
|
||||
},
|
||||
options: {
|
||||
required: false,
|
||||
type: Set
|
||||
},
|
||||
|
|
@ -70,7 +74,7 @@ export default {
|
|||
builtinEntries () {
|
||||
if (this.ignoreSuggestions) return []
|
||||
if (this.overrideAvailableOptions) {
|
||||
return [...this.overrideAvailableOptions]
|
||||
return [...this.options]
|
||||
}
|
||||
if (!this.suggestionsSet) return []
|
||||
|
||||
|
|
|
|||
|
|
@ -1214,7 +1214,9 @@
|
|||
"timelines": "Timelines access",
|
||||
"profiles": "User profiles access",
|
||||
"activities": "Statuses/activities access"
|
||||
}
|
||||
},
|
||||
":unauthenticated": "Unauthenticated",
|
||||
":all": "Everyone"
|
||||
},
|
||||
"registrations": {
|
||||
"welcome": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue