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
d746df48
Commit
d746df48
authored
Jan 30, 2019
by
Dominik Prokop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing code
parent
ca0d2996
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
public/app/features/explore/state/actions.ts
+7
-3
public/app/plugins/datasource/loki/language_provider.ts
+0
-1
No files found.
public/app/features/explore/state/actions.ts
View file @
d746df48
...
...
@@ -324,7 +324,13 @@ export function importQueries(
// Default is blank queries
importedQueries
=
ensureQueries
();
}
dispatch
(
setInitialQueries
(
exploreId
,
importedQueries
));
const
nextQueries
=
importedQueries
.
map
((
q
,
i
)
=>
({
...
importedQueries
[
i
],
...
generateEmptyQuery
(
i
),
}));
dispatch
(
setInitialQueries
(
exploreId
,
nextQueries
));
};
}
...
...
@@ -360,8 +366,6 @@ export function loadDatasource(exploreId: ExploreId, instance: DataSourceApi): T
instance
.
init
();
}
// Check if queries can be imported from previously selected datasource
if
(
datasourceName
!==
getState
().
explore
[
exploreId
].
requestedDatasourceName
)
{
// User already changed datasource again, discard results
return
;
...
...
public/app/plugins/datasource/loki/language_provider.ts
View file @
d746df48
...
...
@@ -177,7 +177,6 @@ export default class LokiLanguageProvider extends LanguageProvider {
return
queries
.
map
(
query
=>
({
refId
:
query
.
refId
,
expr
:
''
,
key
:
query
.
key
,
}));
}
...
...
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