fix(systemtags): Use literal strings for i18n in showSuccess

Signed-off-by: nfebe <fenn25.fn@gmail.com>
This commit is contained in:
nfebe 2025-01-23 18:13:40 +01:00 committed by F. E Noel Nfebe
parent e54c07843c
commit 43ae402487

View file

@ -64,7 +64,10 @@ export default {
handleResponse({ isRestricted, status, errorMessage, error }) {
if (status === 'ok') {
this.systemTagsCreationRestrictedToAdmin = isRestricted
showSuccess(t('settings', `System tag creation is now ${isRestricted ? 'restricted to administrators' : 'allowed for everybody'}`))
showSuccess(isRestricted
? t('settings', 'System tag creation is now restricted to administrators')
: t('settings', 'System tag creation is now allowed for everybody'),
)
return
}