lint
This commit is contained in:
parent
1fd6584374
commit
452a522fa4
5 changed files with 32 additions and 9 deletions
|
|
@ -13,7 +13,8 @@
|
||||||
:user-default="$store.state.profileConfig.defaultScope"
|
:user-default="$store.state.profileConfig.defaultScope"
|
||||||
:initial-scope="$store.state.profileConfig.defaultScope"
|
:initial-scope="$store.state.profileConfig.defaultScope"
|
||||||
:on-scope-change="changeDefaultScope"
|
:on-scope-change="changeDefaultScope"
|
||||||
:unstyled="false"uns
|
:unstyled="false"
|
||||||
|
uns
|
||||||
/>
|
/>
|
||||||
<ProfileSettingIndicator :is-profile="true" />
|
<ProfileSettingIndicator :is-profile="true" />
|
||||||
</label>
|
</label>
|
||||||
|
|
@ -82,7 +83,9 @@
|
||||||
</ChoiceSetting>
|
</ChoiceSetting>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h3 v-if="expertLevel > 0">{{ $t('settings.attachments') }}</h3>
|
<h3 v-if="expertLevel > 0">
|
||||||
|
{{ $t('settings.attachments') }}
|
||||||
|
</h3>
|
||||||
<ul class="setting-list">
|
<ul class="setting-list">
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting
|
<BooleanSetting
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,23 @@ const VersionTab = {
|
||||||
return pleromaFeCommitUrl + this.frontendVersion
|
return pleromaFeCommitUrl + this.frontendVersion
|
||||||
},
|
},
|
||||||
...SharedComputedObject(),
|
...SharedComputedObject(),
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
clearAssetCache () {
|
||||||
|
this.clearCache(cacheKey)
|
||||||
|
},
|
||||||
|
clearEmojiCache () {
|
||||||
|
this.clearCache(emojiCacheKey)
|
||||||
|
},
|
||||||
|
clearCache (key) {
|
||||||
|
clearCache(key)
|
||||||
|
.then(() => {
|
||||||
|
this.$store.dispatch('settingsSaved', { success: true })
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
this.$store.dispatch('settingsSaved', { error })
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
class="developer-tab"
|
class="developer-tab"
|
||||||
>
|
>
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<h3>{{ $t('settings.version.title')}}</h3>
|
<h3>{{ $t('settings.version.title') }}</h3>
|
||||||
<dl class="setting-list">
|
<dl class="setting-list">
|
||||||
<dt>{{ $t('settings.version.backend_version') }}</dt>
|
<dt>{{ $t('settings.version.backend_version') }}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
|
|
@ -20,12 +20,12 @@
|
||||||
<a
|
<a
|
||||||
:href="frontendVersionLink"
|
:href="frontendVersionLink"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
{{ frontendVersion }}
|
{{ frontendVersion }}
|
||||||
</a>
|
</a>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<h3>{{ $t('settings.debug')}}</h3>
|
<h3>{{ $t('settings.debug') }}</h3>
|
||||||
<ul class="setting-list">
|
<ul class="setting-list">
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting path="virtualScrolling">
|
<BooleanSetting path="virtualScrolling">
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,10 @@ import FloatSetting from '../helpers/float_setting.vue'
|
||||||
import InterfaceLanguageSwitcher from 'src/components/interface_language_switcher/interface_language_switcher.vue'
|
import InterfaceLanguageSwitcher from 'src/components/interface_language_switcher/interface_language_switcher.vue'
|
||||||
import ProfileSettingIndicator from '../helpers/profile_setting_indicator.vue'
|
import ProfileSettingIndicator from '../helpers/profile_setting_indicator.vue'
|
||||||
import FontControl from 'src/components/font_control/font_control.vue'
|
import FontControl from 'src/components/font_control/font_control.vue'
|
||||||
import { defaultHorizontalUnits } from '../helpers/unit_setting.js'
|
|
||||||
|
|
||||||
import SharedComputedObject from '../helpers/shared_computed_object.js'
|
import SharedComputedObject from '../helpers/shared_computed_object.js'
|
||||||
|
|
||||||
import localeService from 'src/services/locale/locale.service.js'
|
import localeService from 'src/services/locale/locale.service.js'
|
||||||
import { clearCache, cacheKey, emojiCacheKey } from 'src/services/sw/sw.js'
|
|
||||||
|
|
||||||
const GeneralTab = {
|
const GeneralTab = {
|
||||||
props: {
|
props: {
|
||||||
|
|
|
||||||
|
|
@ -136,8 +136,13 @@
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h3 v-if="expertLevel > 0">{{ $t('settings.confirmations') }}</h3>
|
<h3 v-if="expertLevel > 0">
|
||||||
<ul v-if="expertLevel > 0" class="setting-list">
|
{{ $t('settings.confirmations') }}
|
||||||
|
</h3>
|
||||||
|
<ul
|
||||||
|
v-if="expertLevel > 0"
|
||||||
|
class="setting-list"
|
||||||
|
>
|
||||||
<li class="select-multiple">
|
<li class="select-multiple">
|
||||||
<span class="label">{{ $t('settings.confirm_dialogs') }}</span>
|
<span class="label">{{ $t('settings.confirm_dialogs') }}</span>
|
||||||
<ul class="option-list">
|
<ul class="option-list">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue