[profile] consistent editor routes across locales

This commit is contained in:
Andrea Vos 2020-11-03 23:11:01 +01:00
parent 04cfed6164
commit 7d84dd0d70
5 changed files with 4 additions and 6 deletions

View File

@ -6,7 +6,7 @@
<Icon v="id-card"/>
<T>profile.show</T>
</LocaleLink>
<LocaleLink :locale="locale" :link="`/${config.profile.editorRoute}`" class="badge badge-light border">
<LocaleLink :locale="locale" link="/editor" class="badge badge-light border">
<Icon v="edit"/>
<T>profile.edit</T>
</LocaleLink>
@ -16,7 +16,7 @@
</a>
</span>
<span v-else>
<LocaleLink :locale="locale" :link="`/${config.profile.editorRoute}`" class="badge badge-light border">
<LocaleLink :locale="locale" link="/editor" class="badge badge-light border">
<Icon v="plus-circle"/>
<T>profile.init</T>
</LocaleLink>

View File

@ -105,7 +105,6 @@ user:
profile:
enabled: true
editorEnabled: true
profileEditorRoute: 'my-card'
defaultWords:
- ['mx.', 'mr.', 'miss', 'sir', 'ma''am']
- ['person', 'man', 'woman', 'lady', 'dude', 'boy', 'girl', 'bro', 'sis']

View File

@ -238,7 +238,6 @@ user:
profile:
enabled: true
editorEnabled: true
editorRoute: 'wizytówka'
defaultWords:
- ['pan', 'pani', 'państwo', 'pań', 'panu']
- ['osoba', 'mężczyzna', 'kobieta', 'enby', 'niebinie', 'facet', 'baba', 'ziom', 'laska']

View File

@ -150,7 +150,7 @@ export default {
if (config.profile.enabled) {
routes.push({path: '/@*', component: resolve(__dirname, 'routes/profile.vue')});
if (config.profile.editorEnabled) {
routes.push({path: '/' + config.profile.editorRoute, component: resolve(__dirname, 'routes/profileEditor.vue')});
routes.push({path: '/editor', component: resolve(__dirname, 'routes/profileEditor.vue')});
}
}

View File

@ -6,7 +6,7 @@
@{{username}}
</h2>
<div>
<nuxt-link v-if="$user() && $user().username === username" :to="`/${config.profile.editorRoute}`"
<nuxt-link v-if="$user() && $user().username === username" to="/editor"
class="btn btn-outline-primary btn-sm mb-2"
>
<Icon v="edit"/>