Commit 766ab691 by Johannes Schill Committed by Daniel Lee

dashfolders: Add support for breadcrumbs in NavStore #10275

parent 3a94918b
import { types } from 'mobx-state-tree';
const BreadcrumbItem = types.model('BreadcrumbItem', {
title: types.string,
url: types.string,
});
export const NavItem = types.model('NavItem', {
id: types.identifier(types.string),
text: types.string,
......@@ -10,6 +15,7 @@ export const NavItem = types.model('NavItem', {
active: types.optional(types.boolean, false),
breadcrumbs: types.optional(types.array(types.late(() => Breadcrumb)), []),
children: types.optional(types.array(types.late(() => NavItem)), []),
breadcrumbs: types.optional(types.array(BreadcrumbItem), []),
});
export const Breadcrumb = types.model('Breadcrumb', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment