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

@@ -161,9 +161,6 @@
"mime_type": "MIME Type",
"filesize": "Filesize",
"editing_role": "{role} Role",
"adding_webhook": "Adding Webhook",
"code": "Code",
"loc": "No lines of {lang} | One line of {lang} | {count} lines of {lang}",
@@ -919,6 +916,8 @@
"creating_item": "Creating Item",
"creating_item_page_title": "Creating Item: {collection}",
"creating_role": "Creating Role",
"editing_role": "{role} Role",
"creating_webhook": "Creating Webhook",
"currently_selected": "Currently selected: {thing}",
"database_connection_copy": "Next, we need to know how to connect to the database where this project will be managed.",
"datatype": "Datatype",

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;
});