mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-21 19:45:23 -04:00
[profile] consistent editor routes across locales
This commit is contained in:
parent
04cfed6164
commit
7d84dd0d70
@ -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>
|
||||
|
@ -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']
|
||||
|
@ -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']
|
||||
|
@ -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')});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user