How to use the argo-ui.commonActions.showNotification 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 / actions.ts View on Github external
return async (dispatch: Dispatch, getState: () => AppState) => {
        try {
            await services.applications.deletePod(appName, podName);
        } catch (e) {
            dispatch(commonActions.showNotification({
                type: NotificationType.Error,
                content: `Unable to delete pod: ${e.response && e.response.text || 'Internal error'}`,
            }));
        }
    };
}