updated language files, cache clear button loading

This commit is contained in:
Peter Papp
2020-08-18 15:12:34 +02:00
parent 93a7542502
commit 5f5caae9e7
9 changed files with 47 additions and 10 deletions

View File

@@ -208,6 +208,9 @@
"username_plac": "输入您的邮件用户名"
},
"others": {
"section_cache": "Application Cache",
"cache_disclaimer": "Did you change anything in your .env file or change your stripe credentials? Then clear your cache.",
"cache_clear": "Clear Cache",
"allow_registration": "允许用户注册",
"allow_registration_help": "您可以为新用户禁用公共注册。您仍然可以在管理面板中 <br/>创建新用户。",
"contact_email": "联系电子邮件",

View File

@@ -208,6 +208,9 @@
"username_plac": "Type your mail username"
},
"others": {
"section_cache": "Application Cache",
"cache_disclaimer": "Did you change anything in your .env file or change your Stripe credentials? Then clear your cache.",
"cache_clear": "Clear Cache",
"allow_registration": "Allow User Registration",
"allow_registration_help": "You can disable public registration for new users. You will still able to <br/>create new users in administration panel.",
"contact_email": "Contact Email",

View File

@@ -208,6 +208,9 @@
"username_plac": "Zadajte svoje používateľské meno pre poštu"
},
"others": {
"section_cache": "Aplikačná pamäť",
"cache_disclaimer": "Zmenili ste niečo v .env súbore alebo ste zmenili Stripe poverenia? Vymažte aplikačnú pamäť.",
"cache_clear": "Vymazať aplikačnú pamäť",
"allow_registration": "Povoliť registráciu používateľov",
"allow_registration_help": "Môžete zakázať verejnú registráciu nových používateľov. V administračnom paneli stále budete môcť <br/>vytvárať nových používateľov.",
"contact_email": "Kontaktný email",

View File

@@ -81,13 +81,13 @@
</div>
<FormLabel class="mt-70">
Application Cache
{{ $t('admin_settings.others.section_cache') }}
</FormLabel>
<InfoBox>
Did you change anything in your .env file or change your stripe credentials? Then clear your cache.
{{ $t('admin_settings.others.cache_disclaimer') }}
</InfoBox>
<ButtonBase @click.native="flushCache" type="submit" button-style="theme" class="submit-button">
Clear Cache
<ButtonBase @click.native="flushCache" :loading="isFlushingCache" :disabled="isFlushingCache" type="submit" button-style="theme" class="submit-button">
{{ $t('admin_settings.others.cache_clear') }}
</ButtonBase>
</div>
</PageTabGroup>
@@ -130,6 +130,7 @@
data() {
return {
isLoading: true,
isFlushingCache: false,
app: {
contactMail: '',
googleAnalytics: '',
@@ -141,6 +142,9 @@
},
methods: {
flushCache() {
this.isFlushingCache = true
axios.get('/api/flush-cache')
.then(() => {
events.$emit('toaster', {
@@ -148,6 +152,9 @@
message: 'Your cache was successfully deleted.',
})
})
.finally(() => {
this.isFlushingCache = false
})
}
},
mounted() {