How to use the argo-ui.NotificationType.Success function in argo-ui

To help you get started, we’ve selected a few argo-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github argoproj / argo-cd / ui / src / app / applications / components / application-details / application-details.tsx View on Github external
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');
    }
github argoproj / argo-workflows / ui / src / app / cron-workflows / components / cron-workflow-details / cron-workflow-details.tsx View on Github external
                                    .then(() => notifications.show({content: 'Updated', type: NotificationType.Success}))
                                    .then(() => setError(null))
github argoproj / argo-workflows / ui / src / app / workflows / components / workflows-toolbar / workflows-toolbar.tsx View on Github external
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();
                    });
                },
github argoproj / argo-workflows / ui / src / app / workflow-templates / components / workflow-template-details / workflow-template-details.tsx View on Github external
                                    .then(() => notifications.show({content: 'Updated', type: NotificationType.Success}))
                                    .then(() => setEdited(false))
github argoproj / argo-workflows / ui / src / app / sensors / components / sensor-details / sensor-details.tsx View on Github external
                                    .then(() => notifications.show({content: 'Updated', type: NotificationType.Success}))
                                    .then(() => setEdited(false))
github argoproj / argo-workflows / ui / src / app / pipelines / components / pipeline-details / pipeline-details.tsx View on Github external
.then(() =>
                                        notifications.show({type: NotificationType.Success, content: 'Your pipeline pods should terminate within ~30s, before being re-created'})
                                    )
github argoproj / argo-cd-ui / src / app / applications / components / applications-list / applications-list.tsx View on Github external
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`,
            });
        }
    }
github argoproj / argo-cd-ui / src / app / applications / components / application-details / application-details.tsx View on Github external
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');
    }