Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(() =>
notifications.show({
content: 'Updated',
type: NotificationType.Success
})
)
private onAppDeleted() {
this.appContext.apis.notifications.show({type: NotificationType.Success, content: `Application '${this.props.match.params.name}' was deleted`});
this.appContext.apis.navigation.goto('/applications');
}
.then(() => notifications.show({content: 'Updated', type: NotificationType.Success}))
.then(() => setError(null))
return this.performActionOnSelectedWorkflows(ctx, action.title, action.action).then(() => {
this.props.clearSelection();
this.appContext.apis.notifications.show({
content: `Performed '${action.title}' on selected workflows.`,
type: NotificationType.Success
});
this.props.loadWorkflows();
});
},
.then(() => notifications.show({content: 'Updated', type: NotificationType.Success}))
.then(() => setEdited(false))
.then(() => notifications.show({content: 'Updated', type: NotificationType.Success}))
.then(() => setEdited(false))
.then(() =>
notifications.show({type: NotificationType.Success, content: 'Your pipeline pods should terminate within ~30s, before being re-created'})
)
.then(() =>
notifications.show({
content: 'Updated',
type: NotificationType.Success
})
)
private async syncApplication(appName: string, revision: string) {
const synced = await AppUtils.syncApplication(appName, revision, false, null, this.appContext);
if (synced) {
this.appContext.apis.notifications.show({
type: NotificationType.Success,
content: `Synced revision`,
});
}
}
private onAppDeleted() {
this.appContext.apis.notifications.show({ type: NotificationType.Success, content: `Application '${this.props.match.params.name}' was deleted` });
this.appContext.apis.navigation.goto('/applications');
}