Fix some spelling errors (#14944)

This commit is contained in:
Charles Gagnon
2021-04-01 11:16:08 -07:00
committed by GitHub
parent 4c2969d4ca
commit 37af88e265
2 changed files with 13 additions and 13 deletions

View File

@@ -541,7 +541,7 @@ export class PostgresComputeAndStoragePage extends DashboardPage {
/**
* A function that determines if an input box's value should be considered or not.
* Tiggers the save and discard buttons to become enabled depnding on the value change.
* Triggers the save and discard buttons to become enabled depending on the value change.
*
* If new value is the same as value found in config, do not consider this new value for editing.
* If new value is invalid, do not consider this new value for editing and enable discard button.

View File

@@ -16,7 +16,7 @@ export type PodHealthModel = {
lastUpdate: string
};
export enum PodCondtionType {
export enum PodConditionType {
initialized = 'Initialized',
ready = 'Ready',
containersReady = 'ContainersReady',
@@ -137,7 +137,7 @@ export class PostgresResourceHealthPage extends DashboardPage {
loading: !this._postgresModel.configLastUpdated
}).component();
this.refreshPodCondtions();
this.refreshPodConditions();
content.addItem(this.podConditionsLoading, { CSSStyles: cssStyles.text });
@@ -195,31 +195,31 @@ export class PostgresResourceHealthPage extends DashboardPage {
} else {
imageComponent.iconPath = IconPathHelper.success;
if (c.type === PodCondtionType.initialized) {
if (c.type === PodConditionType.initialized) {
message = loc.podInitialized;
} else if (c.type === PodCondtionType.ready) {
} else if (c.type === PodConditionType.ready) {
message = loc.podReady;
} else if (c.type === PodCondtionType.containersReady) {
} else if (c.type === PodConditionType.containersReady) {
message = loc.containerReady;
} else if (c.type === PodCondtionType.podScheduled) {
} else if (c.type === PodConditionType.podScheduled) {
message = loc.podScheduled;
} else {
message = c.message ?? c.reason ?? '';
}
}
const condtionContainer = this.modelView.modelBuilder.flexContainer().withProps({
const conditionContainer = this.modelView.modelBuilder.flexContainer().withProps({
CSSStyles: { 'alignItems': 'center', 'height': '15px' }
}).component();
condtionContainer.addItem(imageComponent, { CSSStyles: { 'margin-right': '0px' } });
condtionContainer.addItem(this.modelView.modelBuilder.text().withProps({
conditionContainer.addItem(imageComponent, { CSSStyles: { 'margin-right': '0px' } });
conditionContainer.addItem(this.modelView.modelBuilder.text().withProps({
value: message,
}).component());
indexes.push(this.podsData.length);
this.podsData.push({
condition: c.type,
details: condtionContainer,
details: conditionContainer,
lastUpdate: c.lastTransitionTime
});
});
@@ -317,7 +317,7 @@ export class PostgresResourceHealthPage extends DashboardPage {
}
}
private refreshPodCondtions(): void {
private refreshPodConditions(): void {
if (this._postgresModel.config) {
this.podConditionsTableIndexes = new Map();
this.podsData = [];
@@ -330,6 +330,6 @@ export class PostgresResourceHealthPage extends DashboardPage {
private handleConfigUpdated() {
this.podSummaryContainer.clearItems();
this.refreshPodSummarySection();
this.refreshPodCondtions();
this.refreshPodConditions();
}
}