mirror of
https://github.com/grafana/grafana.git
synced 2025-09-20 01:39:53 +08:00
public/app/features/*: Fix some misspell issues
This commit is contained in:
@ -67,7 +67,7 @@ export function updateDashboardPermission(
|
||||
|
||||
const updated = toUpdateItem(item);
|
||||
|
||||
// if this is the item we want to update, update it's permisssion
|
||||
// if this is the item we want to update, update it's permission
|
||||
if (itemToUpdate === item) {
|
||||
updated.permission = level;
|
||||
}
|
||||
|
@ -481,7 +481,7 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
|
||||
} else {
|
||||
// Modify query only at index
|
||||
nextQueries = initialQueries.map((query, i) => {
|
||||
// Synchronise all queries with local query cache to ensure consistency
|
||||
// Synchronize all queries with local query cache to ensure consistency
|
||||
// TODO still needed?
|
||||
return i === index
|
||||
? {
|
||||
|
@ -88,7 +88,7 @@ export default class PlaceholdersBuffer {
|
||||
orders.push({ index: parts.length - 1, order });
|
||||
textOffset += part.length + match.length;
|
||||
}
|
||||
// Ensures string serialisation still works if no placeholders were parsed
|
||||
// Ensures string serialization still works if no placeholders were parsed
|
||||
// and also accounts for the remainder of text with placeholders
|
||||
parts.push(text.slice(textOffset));
|
||||
return {
|
||||
|
@ -112,7 +112,7 @@ export function updateFolderPermission(itemToUpdate: DashboardAcl, level: Permis
|
||||
|
||||
const updated = toUpdateItem(item);
|
||||
|
||||
// if this is the item we want to update, update it's permisssion
|
||||
// if this is the item we want to update, update it's permission
|
||||
if (itemToUpdate === item) {
|
||||
updated.permission = level;
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ import { getBackendSrv } from 'app/core/services/backend_srv';
|
||||
type ThunkResult<R> = ThunkAction<R, StoreState, undefined, any>;
|
||||
|
||||
export enum ActionTypes {
|
||||
LoadOrganization = 'LOAD_ORGANISATION',
|
||||
LoadOrganization = 'LOAD_ORGANIZATION',
|
||||
SetOrganizationName = 'SET_ORGANIZATION_NAME',
|
||||
}
|
||||
|
||||
@ -19,9 +19,9 @@ interface SetOrganizationNameAction {
|
||||
payload: string;
|
||||
}
|
||||
|
||||
const organisationLoaded = (organisation: Organization) => ({
|
||||
const organizationLoaded = (organization: Organization) => ({
|
||||
type: ActionTypes.LoadOrganization,
|
||||
payload: organisation,
|
||||
payload: organization,
|
||||
});
|
||||
|
||||
export const setOrganizationName = (orgName: string) => ({
|
||||
@ -33,10 +33,10 @@ export type Action = LoadOrganizationAction | SetOrganizationNameAction;
|
||||
|
||||
export function loadOrganization(): ThunkResult<void> {
|
||||
return async dispatch => {
|
||||
const organisationResponse = await getBackendSrv().get('/api/org');
|
||||
dispatch(organisationLoaded(organisationResponse));
|
||||
const organizationResponse = await getBackendSrv().get('/api/org');
|
||||
dispatch(organizationLoaded(organizationResponse));
|
||||
|
||||
return organisationResponse;
|
||||
return organizationResponse;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ class MetricsPanelCtrl extends PanelCtrl {
|
||||
.then(this.issueQueries.bind(this))
|
||||
.then(this.handleQueryResult.bind(this))
|
||||
.catch(err => {
|
||||
// if cancelled keep loading set to true
|
||||
// if canceled keep loading set to true
|
||||
if (err.cancelled) {
|
||||
console.log('Panel request cancelled', err);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user