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
458f6bdb
Unverified
Commit
458f6bdb
authored
Apr 27, 2020
by
Torkel Ödegaard
Committed by
GitHub
Apr 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PanelEditor: Fixed issue with PanelModel change plugin type (#23949)
parent
76650e60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
public/app/features/dashboard/state/PanelModel.test.ts
+5
-0
public/app/features/dashboard/state/PanelModel.ts
+1
-0
No files found.
public/app/features/dashboard/state/PanelModel.test.ts
View file @
458f6bdb
...
...
@@ -214,10 +214,15 @@ describe('PanelModel', () => {
});
});
model
.
editSourceId
=
1001
;
model
.
changePlugin
(
newPlugin
);
model
.
alert
=
{
id
:
2
};
});
it
(
'should keep editSourceId'
,
()
=>
{
expect
(
model
.
editSourceId
).
toBe
(
1001
);
});
it
(
'should apply next panel option defaults'
,
()
=>
{
expect
(
model
.
getOptions
().
showThresholdLabels
).
toBeFalsy
();
expect
(
model
.
getOptions
().
showThresholds
).
toBeUndefined
();
...
...
public/app/features/dashboard/state/PanelModel.ts
View file @
458f6bdb
...
...
@@ -84,6 +84,7 @@ const mustKeepProps: { [str: string]: boolean } = {
queryRunner
:
true
,
transformations
:
true
,
fieldConfig
:
true
,
editSourceId
:
true
,
};
const
defaults
:
any
=
{
...
...
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