mirror of
https://github.com/directus/directus.git
synced 2026-01-27 07:08:17 -05:00
creatign role/webhook titles
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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/`">
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user