diff --git a/config/language-translations.php b/config/language-translations.php
index 60b271fb..07ae3f2f 100644
--- a/config/language-translations.php
+++ b/config/language-translations.php
@@ -742,7 +742,7 @@ return [
'actions.create' => 'Create Something',
'actions.search' => 'Search',
'mobile.create' => 'Create',
- 'popup.share.email_send' => 'Send link to Email',
+ 'popup.share.email_send' => 'Send link by Email',
'popup.share.email_description' => 'Send your share link via email to many recipients.',
'expiration' => 'Expiration',
'popup.share.expiration_description' => 'Your link expire after exact period of time.',
diff --git a/resources/js/components/Admin/AppInputText.vue b/resources/js/components/Admin/AppInputText.vue
index 3e3ae94c..1b5c800c 100644
--- a/resources/js/components/Admin/AppInputText.vue
+++ b/resources/js/components/Admin/AppInputText.vue
@@ -9,7 +9,7 @@
-
+
{{ error }}
diff --git a/resources/js/components/Others/CreateUploadRequestPopup.vue b/resources/js/components/Others/CreateUploadRequestPopup.vue
index f3d5f3c4..1e96c781 100644
--- a/resources/js/components/Others/CreateUploadRequestPopup.vue
+++ b/resources/js/components/Others/CreateUploadRequestPopup.vue
@@ -191,10 +191,10 @@ export default {
},
created() {
events.$on('popup:open', (args) => {
- if (args.name === 'create-file-request')
+ if (args.name === 'create-file-request') {
this.pickedItem = args.item
-
- this.form.folder_id = args.item?.data.id
+ this.form.folder_id = args.item?.data.id
+ }
})
// Close popup
diff --git a/resources/js/components/Others/Forms/MultiEmailInput.vue b/resources/js/components/Others/Forms/MultiEmailInput.vue
index 7b648195..94d89685 100644
--- a/resources/js/components/Others/Forms/MultiEmailInput.vue
+++ b/resources/js/components/Others/Forms/MultiEmailInput.vue
@@ -1,35 +1,33 @@
-
+
-
-
diff --git a/resources/js/components/Others/ShareCreatePopup.vue b/resources/js/components/Others/ShareCreatePopup.vue
index c6b5ebc4..e8ec3021 100644
--- a/resources/js/components/Others/ShareCreatePopup.vue
+++ b/resources/js/components/Others/ShareCreatePopup.vue
@@ -95,7 +95,7 @@
-
+
-
+
+
+
diff --git a/resources/js/components/Others/ShareEditPopup.vue b/resources/js/components/Others/ShareEditPopup.vue
index 668d0f5f..bb784642 100644
--- a/resources/js/components/Others/ShareEditPopup.vue
+++ b/resources/js/components/Others/ShareEditPopup.vue
@@ -35,6 +35,7 @@
rules="required"
v-model="emails"
:label="$t('shared_form.label_send_to_recipients')"
+ :is-error="errors[0]"
/>
diff --git a/resources/js/views/Profile.vue b/resources/js/views/Profile.vue
index 61cf4bbc..2bfd3aa4 100644
--- a/resources/js/views/Profile.vue
+++ b/resources/js/views/Profile.vue
@@ -20,8 +20,8 @@
-
-
+
+
@@ -124,12 +124,6 @@ export default {
subscriptionColor() {
return this.user.data.relationships.subscription ? 'green' : 'purple'
},
- canShowUpgradeWarning() {
- return this.config.storageLimit && this.user.data.attributes.storage.used > 95
- },
- canShowIncompletePayment() {
- return this.user.data.attributes.incomplete_payment
- },
pages() {
let list = [
{
@@ -147,7 +141,7 @@ export default {
]
// Push billing item if subscription is set
- if (['fixed', 'metered'].includes(this.config.subscriptionType)) {
+ if (this.config.subscriptionType !== 'none') {
list.push({
title: this.$t('Billing'),
route: 'Billing',
diff --git a/src/App/Users/Resources/UserStorageResource.php b/src/App/Users/Resources/UserStorageResource.php
index 08204d11..97c2c806 100644
--- a/src/App/Users/Resources/UserStorageResource.php
+++ b/src/App/Users/Resources/UserStorageResource.php
@@ -142,7 +142,7 @@ class UserStorageResource extends JsonResource
$upload = $mappedTrafficRecords->map(fn($record) => [
'created_at' => $record->created_at,
'amount' => Metric::bytes($record->upload)->format(),
- 'percentage' => $uploadMax !== 0
+ 'percentage' => intval($uploadMax) !== 0
? round(($record->upload / $uploadMax) * 100, 2)
: 0,
]);
@@ -150,7 +150,7 @@ class UserStorageResource extends JsonResource
$download = $mappedTrafficRecords->map(fn($record) => [
'created_at' => $record->created_at,
'amount' => Metric::bytes($record->download)->format(),
- 'percentage' => $downloadMax !== 0
+ 'percentage' => intval($downloadMax) !== 0
? round(($record->download / $downloadMax) * 100, 2)
: 0,
]);