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
ab9f65a4
Commit
ab9f65a4
authored
Dec 05, 2018
by
Mario Trangoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
public/app/features/*: Fix some misspell issues
parent
0f748433
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
11 deletions
+11
-11
public/app/features/dashboard/state/actions.ts
+1
-1
public/app/features/explore/Explore.tsx
+1
-1
public/app/features/explore/PlaceholdersBuffer.ts
+1
-1
public/app/features/folders/state/actions.ts
+1
-1
public/app/features/org/state/actions.ts
+6
-6
public/app/features/panel/metrics_panel_ctrl.ts
+1
-1
No files found.
public/app/features/dashboard/state/actions.ts
View file @
ab9f65a4
...
@@ -67,7 +67,7 @@ export function updateDashboardPermission(
...
@@ -67,7 +67,7 @@ export function updateDashboardPermission(
const
updated
=
toUpdateItem
(
item
);
const
updated
=
toUpdateItem
(
item
);
// if this is the item we want to update, update it's permiss
s
ion
// if this is the item we want to update, update it's permission
if
(
itemToUpdate
===
item
)
{
if
(
itemToUpdate
===
item
)
{
updated
.
permission
=
level
;
updated
.
permission
=
level
;
}
}
...
...
public/app/features/explore/Explore.tsx
View file @
ab9f65a4
...
@@ -481,7 +481,7 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
...
@@ -481,7 +481,7 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
}
else
{
}
else
{
// Modify query only at index
// Modify query only at index
nextQueries
=
initialQueries
.
map
((
query
,
i
)
=>
{
nextQueries
=
initialQueries
.
map
((
query
,
i
)
=>
{
// Synchroni
s
e all queries with local query cache to ensure consistency
// Synchroni
z
e all queries with local query cache to ensure consistency
// TODO still needed?
// TODO still needed?
return
i
===
index
return
i
===
index
?
{
?
{
...
...
public/app/features/explore/PlaceholdersBuffer.ts
View file @
ab9f65a4
...
@@ -88,7 +88,7 @@ export default class PlaceholdersBuffer {
...
@@ -88,7 +88,7 @@ export default class PlaceholdersBuffer {
orders
.
push
({
index
:
parts
.
length
-
1
,
order
});
orders
.
push
({
index
:
parts
.
length
-
1
,
order
});
textOffset
+=
part
.
length
+
match
.
length
;
textOffset
+=
part
.
length
+
match
.
length
;
}
}
// Ensures string seriali
s
ation still works if no placeholders were parsed
// Ensures string seriali
z
ation still works if no placeholders were parsed
// and also accounts for the remainder of text with placeholders
// and also accounts for the remainder of text with placeholders
parts
.
push
(
text
.
slice
(
textOffset
));
parts
.
push
(
text
.
slice
(
textOffset
));
return
{
return
{
...
...
public/app/features/folders/state/actions.ts
View file @
ab9f65a4
...
@@ -112,7 +112,7 @@ export function updateFolderPermission(itemToUpdate: DashboardAcl, level: Permis
...
@@ -112,7 +112,7 @@ export function updateFolderPermission(itemToUpdate: DashboardAcl, level: Permis
const
updated
=
toUpdateItem
(
item
);
const
updated
=
toUpdateItem
(
item
);
// if this is the item we want to update, update it's permiss
s
ion
// if this is the item we want to update, update it's permission
if
(
itemToUpdate
===
item
)
{
if
(
itemToUpdate
===
item
)
{
updated
.
permission
=
level
;
updated
.
permission
=
level
;
}
}
...
...
public/app/features/org/state/actions.ts
View file @
ab9f65a4
...
@@ -5,7 +5,7 @@ import { getBackendSrv } from 'app/core/services/backend_srv';
...
@@ -5,7 +5,7 @@ import { getBackendSrv } from 'app/core/services/backend_srv';
type
ThunkResult
<
R
>
=
ThunkAction
<
R
,
StoreState
,
undefined
,
any
>
;
type
ThunkResult
<
R
>
=
ThunkAction
<
R
,
StoreState
,
undefined
,
any
>
;
export
enum
ActionTypes
{
export
enum
ActionTypes
{
LoadOrganization
=
'LOAD_ORGANI
S
ATION'
,
LoadOrganization
=
'LOAD_ORGANI
Z
ATION'
,
SetOrganizationName
=
'SET_ORGANIZATION_NAME'
,
SetOrganizationName
=
'SET_ORGANIZATION_NAME'
,
}
}
...
@@ -19,9 +19,9 @@ interface SetOrganizationNameAction {
...
@@ -19,9 +19,9 @@ interface SetOrganizationNameAction {
payload
:
string
;
payload
:
string
;
}
}
const
organi
sationLoaded
=
(
organis
ation
:
Organization
)
=>
({
const
organi
zationLoaded
=
(
organiz
ation
:
Organization
)
=>
({
type
:
ActionTypes
.
LoadOrganization
,
type
:
ActionTypes
.
LoadOrganization
,
payload
:
organi
s
ation
,
payload
:
organi
z
ation
,
});
});
export
const
setOrganizationName
=
(
orgName
:
string
)
=>
({
export
const
setOrganizationName
=
(
orgName
:
string
)
=>
({
...
@@ -33,10 +33,10 @@ export type Action = LoadOrganizationAction | SetOrganizationNameAction;
...
@@ -33,10 +33,10 @@ export type Action = LoadOrganizationAction | SetOrganizationNameAction;
export
function
loadOrganization
():
ThunkResult
<
void
>
{
export
function
loadOrganization
():
ThunkResult
<
void
>
{
return
async
dispatch
=>
{
return
async
dispatch
=>
{
const
organi
s
ationResponse
=
await
getBackendSrv
().
get
(
'/api/org'
);
const
organi
z
ationResponse
=
await
getBackendSrv
().
get
(
'/api/org'
);
dispatch
(
organi
sationLoaded
(
organis
ationResponse
));
dispatch
(
organi
zationLoaded
(
organiz
ationResponse
));
return
organi
s
ationResponse
;
return
organi
z
ationResponse
;
};
};
}
}
...
...
public/app/features/panel/metrics_panel_ctrl.ts
View file @
ab9f65a4
...
@@ -99,7 +99,7 @@ class MetricsPanelCtrl extends PanelCtrl {
...
@@ -99,7 +99,7 @@ class MetricsPanelCtrl extends PanelCtrl {
.
then
(
this
.
issueQueries
.
bind
(
this
))
.
then
(
this
.
issueQueries
.
bind
(
this
))
.
then
(
this
.
handleQueryResult
.
bind
(
this
))
.
then
(
this
.
handleQueryResult
.
bind
(
this
))
.
catch
(
err
=>
{
.
catch
(
err
=>
{
// if cancel
l
ed keep loading set to true
// if canceled keep loading set to true
if
(
err
.
cancelled
)
{
if
(
err
.
cancelled
)
{
console
.
log
(
'Panel request cancelled'
,
err
);
console
.
log
(
'Panel request cancelled'
,
err
);
return
;
return
;
...
...
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