mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
none billing app fixes
This commit is contained in:
6
resources/js/helpers/ValidatorHelpers.js
vendored
6
resources/js/helpers/ValidatorHelpers.js
vendored
@@ -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)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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-->
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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! 🥳🥳🥳');
|
||||
|
||||
Reference in New Issue
Block a user