feat: new nav UI (wip)
This commit is contained in:
@@ -11,7 +11,7 @@ module.exports = {
|
||||
},
|
||||
NavigationQuery: {
|
||||
async tree(obj, args, context, info) {
|
||||
return WIKI.models.navigation.getTree()
|
||||
return WIKI.models.navigation.getTree({ cache: false, locale: 'all' })
|
||||
}
|
||||
},
|
||||
NavigationMutation: {
|
||||
|
@@ -15,7 +15,7 @@ extend type Mutation {
|
||||
# -----------------------------------------------
|
||||
|
||||
type NavigationQuery {
|
||||
tree: [NavigationItem]!
|
||||
tree: [NavigationTree]!
|
||||
}
|
||||
|
||||
# -----------------------------------------------
|
||||
@@ -24,7 +24,7 @@ type NavigationQuery {
|
||||
|
||||
type NavigationMutation {
|
||||
updateTree(
|
||||
tree: [NavigationItemInput]!
|
||||
tree: [NavigationTreeInput]!
|
||||
): DefaultResponse @auth(requires: ["manage:navigation", "manage:system"])
|
||||
}
|
||||
|
||||
@@ -32,6 +32,16 @@ type NavigationMutation {
|
||||
# TYPES
|
||||
# -----------------------------------------------
|
||||
|
||||
type NavigationTree {
|
||||
locale: String!
|
||||
items: [NavigationItem]!
|
||||
}
|
||||
|
||||
input NavigationTreeInput {
|
||||
locale: String!
|
||||
items: [NavigationItemInput]!
|
||||
}
|
||||
|
||||
type NavigationItem {
|
||||
id: String!
|
||||
kind: String!
|
||||
|
Reference in New Issue
Block a user