mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -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"/>
|
<Icon v="id-card"/>
|
||||||
<T>profile.show</T>
|
<T>profile.show</T>
|
||||||
</LocaleLink>
|
</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"/>
|
<Icon v="edit"/>
|
||||||
<T>profile.edit</T>
|
<T>profile.edit</T>
|
||||||
</LocaleLink>
|
</LocaleLink>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<span v-else>
|
<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"/>
|
<Icon v="plus-circle"/>
|
||||||
<T>profile.init</T>
|
<T>profile.init</T>
|
||||||
</LocaleLink>
|
</LocaleLink>
|
||||||
|
@ -105,7 +105,6 @@ user:
|
|||||||
profile:
|
profile:
|
||||||
enabled: true
|
enabled: true
|
||||||
editorEnabled: true
|
editorEnabled: true
|
||||||
profileEditorRoute: 'my-card'
|
|
||||||
defaultWords:
|
defaultWords:
|
||||||
- ['mx.', 'mr.', 'miss', 'sir', 'ma''am']
|
- ['mx.', 'mr.', 'miss', 'sir', 'ma''am']
|
||||||
- ['person', 'man', 'woman', 'lady', 'dude', 'boy', 'girl', 'bro', 'sis']
|
- ['person', 'man', 'woman', 'lady', 'dude', 'boy', 'girl', 'bro', 'sis']
|
||||||
|
@ -238,7 +238,6 @@ user:
|
|||||||
profile:
|
profile:
|
||||||
enabled: true
|
enabled: true
|
||||||
editorEnabled: true
|
editorEnabled: true
|
||||||
editorRoute: 'wizytówka'
|
|
||||||
defaultWords:
|
defaultWords:
|
||||||
- ['pan', 'pani', 'państwo', 'pań', 'panu']
|
- ['pan', 'pani', 'państwo', 'pań', 'panu']
|
||||||
- ['osoba', 'mężczyzna', 'kobieta', 'enby', 'niebinie', 'facet', 'baba', 'ziom', 'laska']
|
- ['osoba', 'mężczyzna', 'kobieta', 'enby', 'niebinie', 'facet', 'baba', 'ziom', 'laska']
|
||||||
|
@ -150,7 +150,7 @@ export default {
|
|||||||
if (config.profile.enabled) {
|
if (config.profile.enabled) {
|
||||||
routes.push({path: '/@*', component: resolve(__dirname, 'routes/profile.vue')});
|
routes.push({path: '/@*', component: resolve(__dirname, 'routes/profile.vue')});
|
||||||
if (config.profile.editorEnabled) {
|
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}}
|
@{{username}}
|
||||||
</h2>
|
</h2>
|
||||||
<div>
|
<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"
|
class="btn btn-outline-primary btn-sm mb-2"
|
||||||
>
|
>
|
||||||
<Icon v="edit"/>
|
<Icon v="edit"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user