feat: pages admin + path parsing fixes

This commit is contained in:
Nick
2019-07-02 01:48:19 -04:00
parent 4f968cf230
commit 13f172978f
13 changed files with 454 additions and 45 deletions

View File

@@ -97,6 +97,7 @@
v-else-if='current.targetType === "page"'
color='indigo'
dark
@click='selectPage'
)
v-icon(left) search
span Select Page...
@@ -162,8 +163,8 @@ export default {
return [
{ text: this.$t('navigation.navType.external'), value: 'external' },
{ text: this.$t('navigation.navType.home'), value: 'home' },
{ text: this.$t('navigation.navType.page'), value: 'page' },
{ text: this.$t('navigation.navType.searchQuery'), value: 'search' }
{ text: this.$t('navigation.navType.page'), value: 'page' }
// { text: this.$t('navigation.navType.searchQuery'), value: 'search' }
]
}
},
@@ -197,6 +198,9 @@ export default {
selectItem(item) {
this.current = item
},
selectPage() {
window.alert(`Coming soon. Use External Link for now (you can still specify internal links).`)
},
async save() {
this.$store.commit(`loadingStart`, 'admin-navigation-save')
try {