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

View File

@@ -17,7 +17,7 @@
<b class="mb-3 block text-sm dark:text-gray-500 text-gray-400">
{{ limit.message }}
</b>
<ProgressLine :data="limit.distribution" />
<ProgressLine v-if="limit.isVisibleBar" :data="limit.distribution" />
</div>
</div>
</template>
@@ -51,7 +51,9 @@ export default {
},
message: {
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: {
max_storage_amount: this.$t('storage'),
@@ -61,7 +63,8 @@ export default {
limitations.push({
message: payload.message[key],
distribution: [
isVisibleBar: item.total !== -1,
distribution: [
{
progress: item.percentage,
color: payload.color[key],

View File

@@ -17,7 +17,7 @@
<b class="mb-3 block text-sm dark:text-gray-500 text-gray-400">
{{ limit.message }}
</b>
<ProgressLine :data="limit.distribution" />
<ProgressLine v-if="limit.isVisibleBar" :data="limit.distribution" />
</div>
</div>
</template>
@@ -61,7 +61,9 @@ export default {
},
message: {
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: {
max_storage_amount: this.$t('storage'),
@@ -71,6 +73,7 @@ export default {
this.limitations.push({
message: payload.message[key],
isVisibleBar: item.total === -1,
distribution: [
{
progress: item.percentage,