unlimited team members text fix

This commit is contained in:
Čarodej
2022-03-28 18:03:38 +02:00
parent e604c8e4fd
commit ed67927672
3 changed files with 13 additions and 7 deletions
+2 -2
View File
@@ -29,7 +29,7 @@
"/chunks/user.js": "/chunks/user.js?id=c191b906a0496fe5", "/chunks/user.js": "/chunks/user.js?id=c191b906a0496fe5",
"/chunks/user-detail.js": "/chunks/user-detail.js?id=f9e17ff98354e984", "/chunks/user-detail.js": "/chunks/user-detail.js?id=f9e17ff98354e984",
"/chunks/user-storage.js": "/chunks/user-storage.js?id=a8e0bce4703232a0", "/chunks/user-storage.js": "/chunks/user-storage.js?id=a8e0bce4703232a0",
"/chunks/user-subscription.js": "/chunks/user-subscription.js?id=bfe357e0ea955be0", "/chunks/user-subscription.js": "/chunks/user-subscription.js?id=27d046c1122783ea",
"/chunks/user-password.js": "/chunks/user-password.js?id=23d3aee39f539a3c", "/chunks/user-password.js": "/chunks/user-password.js?id=23d3aee39f539a3c",
"/chunks/user-delete.js": "/chunks/user-delete.js?id=6bea6f8cadf4d74f", "/chunks/user-delete.js": "/chunks/user-delete.js?id=6bea6f8cadf4d74f",
"/chunks/plan.js": "/chunks/plan.js?id=4b267375ea9f19b3", "/chunks/plan.js": "/chunks/plan.js?id=4b267375ea9f19b3",
@@ -61,7 +61,7 @@
"/chunks/profile.js": "/chunks/profile.js?id=7d3719710c55ceeb", "/chunks/profile.js": "/chunks/profile.js?id=7d3719710c55ceeb",
"/chunks/settings-password.js": "/chunks/settings-password.js?id=11d4331650cac280", "/chunks/settings-password.js": "/chunks/settings-password.js?id=11d4331650cac280",
"/chunks/settings-storage.js": "/chunks/settings-storage.js?id=994b669a56fd417b", "/chunks/settings-storage.js": "/chunks/settings-storage.js?id=994b669a56fd417b",
"/chunks/billing.js": "/chunks/billing.js?id=c00460dcfd3403a8", "/chunks/billing.js": "/chunks/billing.js?id=4ea77ab501b8c575",
"/chunks/platform.js": "/chunks/platform.js?id=2c387300504bdfe7", "/chunks/platform.js": "/chunks/platform.js?id=2c387300504bdfe7",
"/chunks/files.js": "/chunks/files.js?id=060b1a34dfdbe97c", "/chunks/files.js": "/chunks/files.js?id=060b1a34dfdbe97c",
"/chunks/recent-uploads.js": "/chunks/recent-uploads.js?id=0f63bbc02ad8f3e1", "/chunks/recent-uploads.js": "/chunks/recent-uploads.js?id=0f63bbc02ad8f3e1",
@@ -17,7 +17,7 @@
<b class="mb-3 block text-sm dark:text-gray-500 text-gray-400"> <b class="mb-3 block text-sm dark:text-gray-500 text-gray-400">
{{ limit.message }} {{ limit.message }}
</b> </b>
<ProgressLine :data="limit.distribution" /> <ProgressLine v-if="limit.isVisibleBar" :data="limit.distribution" />
</div> </div>
</div> </div>
</template> </template>
@@ -51,7 +51,9 @@ export default {
}, },
message: { message: {
max_storage_amount: this.$t('total_x_of_x_used', {use: item.use, total:item.total }), max_storage_amount: this.$t('total_x_of_x_used', {use: item.use, total:item.total }),
max_team_members: this.$t('total_x_of_x_members', {use: item.use, total:item.total }), max_team_members: item.total === -1
? this.$t('max_team_members.unlimited')
: this.$t('total_x_of_x_members', {use: item.use, total:item.total }),
}, },
title: { title: {
max_storage_amount: this.$t('storage'), max_storage_amount: this.$t('storage'),
@@ -61,7 +63,8 @@ export default {
limitations.push({ limitations.push({
message: payload.message[key], message: payload.message[key],
distribution: [ isVisibleBar: item.total !== -1,
distribution: [
{ {
progress: item.percentage, progress: item.percentage,
color: payload.color[key], color: payload.color[key],
@@ -17,7 +17,7 @@
<b class="mb-3 block text-sm dark:text-gray-500 text-gray-400"> <b class="mb-3 block text-sm dark:text-gray-500 text-gray-400">
{{ limit.message }} {{ limit.message }}
</b> </b>
<ProgressLine :data="limit.distribution" /> <ProgressLine v-if="limit.isVisibleBar" :data="limit.distribution" />
</div> </div>
</div> </div>
</template> </template>
@@ -61,7 +61,9 @@ export default {
}, },
message: { message: {
max_storage_amount: this.$t('total_x_of_x_used', {use: item.use, total:item.total }), max_storage_amount: this.$t('total_x_of_x_used', {use: item.use, total:item.total }),
max_team_members: this.$t('total_x_of_x_members', {use: item.use, total:item.total }), max_team_members: item.total === -1
? this.$t('max_team_members.unlimited')
: this.$t('total_x_of_x_members', {use: item.use, total:item.total }),
}, },
title: { title: {
max_storage_amount: this.$t('storage'), max_storage_amount: this.$t('storage'),
@@ -71,6 +73,7 @@ export default {
this.limitations.push({ this.limitations.push({
message: payload.message[key], message: payload.message[key],
isVisibleBar: item.total === -1,
distribution: [ distribution: [
{ {
progress: item.percentage, progress: item.percentage,