How to use the argo-ui/src/index.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 / user-info / components / user-info-overview / user-info-overview.tsx View on Github external
private async changePassword(username: string, currentPassword: Nested | FormValue, newPassword: Nested | FormValue) {
        try {
            await services.accounts.changePassword(username, currentPassword, newPassword);
            this.appContext.apis.notifications.show({type: NotificationType.Success, content: 'Your password has been successfully updated.'});
            this.showChangePassword = false;
        } catch (e) {
            this.appContext.apis.notifications.show({
                content: ,
                type: NotificationType.Error
            });
        }
    }