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
661de1ef
Commit
661de1ef
authored
Jan 30, 2019
by
Dominik Prokop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename SetInitialQueries action to QueriesImported
parent
d746df48
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
public/app/features/explore/state/actionTypes.ts
+4
-4
public/app/features/explore/state/actions.ts
+4
-4
public/app/features/explore/state/reducers.ts
+1
-1
No files found.
public/app/features/explore/state/actionTypes.ts
View file @
661de1ef
...
...
@@ -43,7 +43,7 @@ export enum ActionTypes {
ToggleTable
=
'explore/TOGGLE_TABLE'
,
UpdateDatasourceInstance
=
'explore/UPDATE_DATASOURCE_INSTANCE'
,
ResetExplore
=
'explore/RESET_EXPLORE'
,
SetInitialQueries
=
'explore/SET_INITIAL_QUERIES
'
,
QueriesImported
=
'explore/QueriesImported
'
,
}
export
interface
AddQueryRowAction
{
...
...
@@ -283,8 +283,8 @@ export interface ResetExploreAction {
payload
:
{};
}
export
interface
SetInitialQueriesAction
{
type
:
ActionTypes
.
SetInitialQueries
;
export
interface
QueriesImported
{
type
:
ActionTypes
.
QueriesImported
;
payload
:
{
exploreId
:
ExploreId
;
queries
:
DataQuery
[];
...
...
@@ -321,4 +321,4 @@ export type Action =
|
ToggleTableAction
|
UpdateDatasourceInstanceAction
|
ResetExploreAction
|
SetInitialQueriesAction
;
|
QueriesImported
;
public/app/features/explore/state/actions.ts
View file @
661de1ef
...
...
@@ -53,7 +53,7 @@ import {
QueryTransactionStartAction
,
ScanStopAction
,
UpdateDatasourceInstanceAction
,
SetInitialQueriesAction
,
QueriesImported
,
}
from
'./actionTypes'
;
type
ThunkResult
<
R
>
=
ThunkAction
<
R
,
StoreState
,
undefined
,
ThunkableAction
>
;
...
...
@@ -243,9 +243,9 @@ export const loadDatasourcePending = (
},
});
export
const
setInitialQueries
=
(
exploreId
:
ExploreId
,
queries
:
DataQuery
[]):
SetInitialQueriesAction
=>
{
export
const
queriesImported
=
(
exploreId
:
ExploreId
,
queries
:
DataQuery
[]):
QueriesImported
=>
{
return
{
type
:
ActionTypes
.
SetInitialQueries
,
type
:
ActionTypes
.
QueriesImported
,
payload
:
{
exploreId
,
queries
,
...
...
@@ -330,7 +330,7 @@ export function importQueries(
...
generateEmptyQuery
(
i
),
}));
dispatch
(
setInitialQueries
(
exploreId
,
nextQueries
));
dispatch
(
queriesImported
(
exploreId
,
nextQueries
));
};
}
...
...
public/app/features/explore/state/reducers.ts
View file @
661de1ef
...
...
@@ -414,7 +414,7 @@ export const itemReducer = (state, action: Action): ExploreItemState => {
return
{
...
state
,
...
results
,
queryTransactions
:
nextQueryTransactions
,
showingTable
};
}
case
ActionTypes
.
SetInitialQueries
:
{
case
ActionTypes
.
QueriesImported
:
{
return
{
...
state
,
initialQueries
:
action
.
payload
.
queries
,
...
...
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