creatign role/webhook titles

This commit is contained in:
Ben Haynes
2020-08-15 08:58:19 -04:00
parent d9a605bf79
commit fdd43e7944
3 changed files with 4 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<template>
<private-view :title="loading ? $t('loading') : $t('editing_role', { role: item && item.name })">
<private-view :title="loading ? $t('loading') : (isNew === false)? $t('editing_role', { role: item && item.name }) : $t('creating_role') ">
<template #headline>{{ $t('settings_permissions') }}</template>
<template #title-outer:prepend>
<v-button class="header-icon" rounded icon exact :to="`/settings/roles/`">

View File

@@ -106,7 +106,7 @@ export default defineComponent({
const title = computed(() => {
if (loading.value) return i18n.t('loading');
if (isNew.value) return i18n.t('adding_webhook');
if (isNew.value) return i18n.t('creating_webhook');
return item.value.name;
});