Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
766ab691
Commit
766ab691
authored
Jan 18, 2018
by
Johannes Schill
Committed by
Daniel Lee
Jan 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashfolders: Add support for breadcrumbs in NavStore #10275
parent
3a94918b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
public/app/stores/NavStore/NavItem.ts
+6
-0
No files found.
public/app/stores/NavStore/NavItem.ts
View file @
766ab691
import
{
types
}
from
'mobx-state-tree'
;
import
{
types
}
from
'mobx-state-tree'
;
const
BreadcrumbItem
=
types
.
model
(
'BreadcrumbItem'
,
{
title
:
types
.
string
,
url
:
types
.
string
,
});
export
const
NavItem
=
types
.
model
(
'NavItem'
,
{
export
const
NavItem
=
types
.
model
(
'NavItem'
,
{
id
:
types
.
identifier
(
types
.
string
),
id
:
types
.
identifier
(
types
.
string
),
text
:
types
.
string
,
text
:
types
.
string
,
...
@@ -10,6 +15,7 @@ export const NavItem = types.model('NavItem', {
...
@@ -10,6 +15,7 @@ export const NavItem = types.model('NavItem', {
active
:
types
.
optional
(
types
.
boolean
,
false
),
active
:
types
.
optional
(
types
.
boolean
,
false
),
breadcrumbs
:
types
.
optional
(
types
.
array
(
types
.
late
(()
=>
Breadcrumb
)),
[]),
breadcrumbs
:
types
.
optional
(
types
.
array
(
types
.
late
(()
=>
Breadcrumb
)),
[]),
children
:
types
.
optional
(
types
.
array
(
types
.
late
(()
=>
NavItem
)),
[]),
children
:
types
.
optional
(
types
.
array
(
types
.
late
(()
=>
NavItem
)),
[]),
breadcrumbs
:
types
.
optional
(
types
.
array
(
BreadcrumbItem
),
[]),
});
});
export
const
Breadcrumb
=
types
.
model
(
'Breadcrumb'
,
{
export
const
Breadcrumb
=
types
.
model
(
'Breadcrumb'
,
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment