mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 20:24:18 -04:00
(admin) check rights for the locale of the card not of the current page
This commit is contained in:
parent
881ac850d4
commit
e36d2091fb
@ -209,7 +209,7 @@
|
|||||||
]"
|
]"
|
||||||
/>
|
/>
|
||||||
<AdminDashboardCard
|
<AdminDashboardCard
|
||||||
v-if="$isGranted('translations', locale) && (stats[locale].translations.missing > 0 || stats[locale].translations.awaitingApproval > 0) || $isGranted('code') && stats[locale].translations.awaitingMerge > 0"
|
v-if="$isGranted('translations', locale) && (stats[locale].translations.missing > 0 || stats[locale].translations.awaitingApproval > 0) || $isGranted('code', locale) && stats[locale].translations.awaitingMerge > 0"
|
||||||
v-show="!filterAttention || stats[locale].translations.missing || stats[locale].translations.awaitingApproval || stats[locale].translations.awaitingMerge"
|
v-show="!filterAttention || stats[locale].translations.missing || stats[locale].translations.awaitingApproval || stats[locale].translations.awaitingMerge"
|
||||||
:base-url="url"
|
:base-url="url"
|
||||||
icon="language"
|
icon="language"
|
||||||
@ -221,7 +221,7 @@
|
|||||||
count: stats[locale].translations.missing,
|
count: stats[locale].translations.missing,
|
||||||
warning: 1,
|
warning: 1,
|
||||||
danger: 16,
|
danger: 16,
|
||||||
enabled: $isGranted('translations'),
|
enabled: $isGranted('translations', locale),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'proposed',
|
name: 'proposed',
|
||||||
@ -229,7 +229,7 @@
|
|||||||
count: stats[locale].translations.awaitingApproval,
|
count: stats[locale].translations.awaitingApproval,
|
||||||
warning: 1,
|
warning: 1,
|
||||||
danger: 16,
|
danger: 16,
|
||||||
enabled: $isGranted('translations'),
|
enabled: $isGranted('translations', locale),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'not merged',
|
name: 'not merged',
|
||||||
@ -237,7 +237,7 @@
|
|||||||
count: stats[locale].translations.awaitingMerge,
|
count: stats[locale].translations.awaitingMerge,
|
||||||
warning: 1,
|
warning: 1,
|
||||||
danger: 16,
|
danger: 16,
|
||||||
enabled: $isGranted('code'),
|
enabled: $isGranted('code', locale),
|
||||||
},
|
},
|
||||||
]"
|
]"
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user