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