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
f049fc48
Commit
f049fc48
authored
Jan 02, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mobx: fixed issue with view store, and added missing snapshot
parent
5981f672
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
1 deletions
+75
-1
public/app/containers/AlertRuleList/__snapshots__/AlertRuleList.jest.tsx.snap
+72
-0
public/app/stores/ViewStore.ts
+3
-1
No files found.
public/app/containers/AlertRuleList/__snapshots__/AlertRuleList.jest.tsx.snap
0 → 100644
View file @
f049fc48
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`AlertRuleList should render 1 rule 1`] = `
<li
className="card-item-wrapper"
>
<div
className="card-item card-item--alert"
>
<div
className="card-item-header"
>
<div
className="card-item-type"
>
<a
className="card-item-cog"
onClick={[Function]}
title="Pausing an alert rule prevents it from executing"
>
<i
className="fa fa-pause"
/>
</a>
<a
className="card-item-cog"
href="dashboard/db/mygool?panelId=3&fullscreen&edit&tab=alert"
title="Edit alert rule"
>
<i
className="icon-gf icon-gf-settings"
/>
</a>
</div>
</div>
<div
className="card-item-body"
>
<div
className="card-item-details"
>
<div
className="card-item-name"
>
<a
href="dashboard/db/mygool?panelId=3&fullscreen&edit&tab=alert"
>
Panel Title alert
</a>
</div>
<div
className="card-item-sub-name"
>
<span
className="alert-list-item-state alert-state-ok"
>
<i
className="icon-gf icon-gf-online"
/>
OK
</span>
<span>
for
5 minutes
</span>
</div>
</div>
</div>
</div>
</li>
`;
public/app/stores/ViewStore.ts
View file @
f049fc48
...
...
@@ -2,10 +2,12 @@ import { types } from 'mobx-state-tree';
import
_
from
'lodash'
;
import
$
from
'jquery'
;
let
QueryValueType
=
types
.
union
(
types
.
string
,
types
.
boolean
,
types
.
number
);
export
const
ViewStore
=
types
.
model
({
path
:
types
.
string
,
query
:
types
.
map
(
types
.
string
),
query
:
types
.
map
(
QueryValueType
),
})
.
views
(
self
=>
({
get
currentUrl
()
{
...
...
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