mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix notification text
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
79fccbdb27
commit
ab3fbba9b5
@ -61,11 +61,11 @@ export class AddHelmRepoDialog extends React.Component<Props> {
|
|||||||
@observable showOptions = false;
|
@observable showOptions = false;
|
||||||
|
|
||||||
@action
|
@action
|
||||||
close = () => {
|
close = () => {
|
||||||
AddHelmRepoDialog.close();
|
AddHelmRepoDialog.close();
|
||||||
this.helmRepo = getEmptyRepo();
|
this.helmRepo = getEmptyRepo();
|
||||||
this.showOptions = false;
|
this.showOptions = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
setFilepath(type: FileType, value: string) {
|
setFilepath(type: FileType, value: string) {
|
||||||
this.helmRepo[type] = value;
|
this.helmRepo[type] = value;
|
||||||
@ -95,7 +95,7 @@ export class AddHelmRepoDialog extends React.Component<Props> {
|
|||||||
async addCustomRepo() {
|
async addCustomRepo() {
|
||||||
try {
|
try {
|
||||||
await HelmRepoManager.getInstance().addRepo(this.helmRepo);
|
await HelmRepoManager.getInstance().addRepo(this.helmRepo);
|
||||||
Notifications.ok(<>Helm repository <b>{this.helmRepo.name}</b> has added</>);
|
Notifications.ok(<>Helm repository <b>{this.helmRepo.name}</b> has been added</>);
|
||||||
this.props.onAddRepo();
|
this.props.onAddRepo();
|
||||||
this.close();
|
this.close();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user