none billing app fixes

This commit is contained in:
Čarodej
2022-02-12 09:16:36 +01:00
parent 948c7453a6
commit 4498461e70
5 changed files with 10 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ import store from '../store/index'
const ValidatorHelpers = {
install(Vue) {
Vue.prototype.$cantInviteMember = function (email, invitations) {
if (store.getters.config.subscriptionType === 'metered') {
if (['metered', 'none'].includes(store.getters.config.subscriptionType)) {
return false
}
@@ -28,9 +28,7 @@ const ValidatorHelpers = {
Vue.prototype.$reCaptchaToken = async function (action) {
await this.$recaptchaLoaded()
let token = await this.$recaptcha(action)
return token
return await this.$recaptcha(action)
}
},
}

View File

@@ -9,7 +9,7 @@
<img
:src="user.data.relationships.settings.data.attributes.avatar.sm"
:alt="user.data.relationships.settings.data.attributes.name"
class="relative z-0 h-14 w-14 cursor-pointer rounded-xl object-cover shadow-lg md:h-16 md:w-16"
class="relative z-0 h-14 w-14 rounded-xl object-cover shadow-lg md:h-16 md:w-16"
/>
<!--User name & email-->

View File

@@ -10,7 +10,7 @@
{{ storage.data.attributes.used }}
</b>
<b v-if="['fixed', 'none'].includes(config.subscriptionType)" class="mt-0.5 block text-sm text-gray-400">
<b v-if="config.subscriptionType === 'fixed' || (config.subscriptionType === 'none' && config.storageLimit)" class="mt-0.5 block text-sm text-gray-400">
{{ $t('Total of') }} {{ storage.data.attributes.capacity }}
{{ $t('Used') }}
</b>

View File

@@ -14,7 +14,7 @@
{{ $t('Used') }}
</b>
<ProgressLine :data="distribution" class="mt-5" />
<ProgressLine v-if="storage.data.attributes.used !== '0B'" :data="distribution" class="mt-5" />
</div>
<div v-if="distribution" class="card shadow-card">
<FormLabel icon="hard-drive">

View File

@@ -66,6 +66,11 @@ class SetupProdEnvironment extends Command
$this->info('Clearing application cache...');
$this->clear_cache();
$this->info('Dispatching jobs...');
$this->call('queue:work', [
'--stop-when-empty' => true,
]);
$this->warn('Please make sure your current host/domain where you are running app is included in your .env SANCTUM_STATEFUL_DOMAINS variable.');
$this->info('Everything is done, congratulations! 🥳🥳🥳');