Browse Source

fix: incorrect default lang selected in page-selector component (#1005)

pull/1016/head
Nick 5 years ago
parent
commit
7a582f7146
2 changed files with 2 additions and 2 deletions
  1. 2
      client/components/common/nav-header.vue
  2. 2
      client/components/common/page-selector.vue

2
client/components/common/nav-header.vue

@ -193,7 +193,7 @@
v-icon(color='grey') mdi-account-circle v-icon(color='grey') mdi-account-circle
span {{$t('common:header.login')}} span {{$t('common:header.login')}}
page-selector(mode='create', v-model='newPageModal', :open-handler='pageNewCreate')
page-selector(mode='create', v-model='newPageModal', :open-handler='pageNewCreate', :locale='locale')
page-delete(v-model='deletePageModal', v-if='path && path.length') page-delete(v-model='deletePageModal', v-if='path && path.length')
</template> </template>

2
client/components/common/page-selector.vue

@ -108,7 +108,7 @@ export default {
data() { data() {
return { return {
searchLoading: false, searchLoading: false,
currentLocale: 'en',
currentLocale: siteConfig.lang,
currentPath: 'new-page', currentPath: 'new-page',
tree: [], tree: [],
treeChildren: [], treeChildren: [],

Loading…
Cancel
Save