mirror of
https://github.com/crater-invoice/crater.git
synced 2026-02-08 11:52:40 -05:00
Translate badges
This commit is contained in:
@@ -65,9 +65,11 @@
|
||||
:color="$utils.getBadgeStatusColor(row.status).color"
|
||||
>
|
||||
{{
|
||||
row.status != 'PARTIALLY_PAID'
|
||||
? row.status
|
||||
: row.status.replace('_', ' ')
|
||||
$utils.getStatusTranslation(
|
||||
row.status != 'PARTIALLY_PAID'
|
||||
? row.status
|
||||
: row.status.replace('_', ' ')
|
||||
)
|
||||
}}
|
||||
</sw-badge>
|
||||
</template>
|
||||
|
||||
@@ -254,7 +254,7 @@
|
||||
:color="$utils.getBadgeStatusColor(row.status).color"
|
||||
class="px-3 py-1"
|
||||
>
|
||||
{{ row.status }}
|
||||
{{ $utils.getStatusTranslation(row.status) }}
|
||||
</sw-badge>
|
||||
</template>
|
||||
</sw-table-column>
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
:color="$utils.getBadgeStatusColor(estimate.status).color"
|
||||
class="px-1 text-xs"
|
||||
>
|
||||
{{ estimate.status }}
|
||||
{{ $utils.getStatusTranslation(estimate.status) }}
|
||||
</sw-badge>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -241,7 +241,7 @@
|
||||
:bg-color="$utils.getBadgeStatusColor(row.status).bgColor"
|
||||
:color="$utils.getBadgeStatusColor(row.status).color"
|
||||
>
|
||||
{{ row.status.replace('_', ' ') }}
|
||||
{{ $utils.getStatusTranslation(row.status.replace('_', ' ')) }}
|
||||
</sw-badge>
|
||||
</template>
|
||||
</sw-table-column>
|
||||
@@ -258,7 +258,7 @@
|
||||
:bg-color="$utils.getBadgeStatusColor(row.status).bgColor"
|
||||
:color="$utils.getBadgeStatusColor(row.status).color"
|
||||
>
|
||||
{{ row.paid_status.replace('_', ' ') }}
|
||||
{{ $utils.getStatusTranslation(row.paid_status.replace('_', ' ')) }}
|
||||
</sw-badge>
|
||||
</template>
|
||||
</sw-table-column>
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
:font-size="$utils.getBadgeStatusColor(invoice.status).fontSize"
|
||||
class="px-1 text-xs"
|
||||
>
|
||||
{{ invoice.status }}
|
||||
{{ $utils.getStatusTranslation(invoice.status) }}
|
||||
</sw-badge>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user