How to use the uikit.notification function in uikit

To help you get started, we’ve selected a few uikit 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 sourcepods / sourcepods / ui / pages / settings / profile.vue View on Github external
.then((res) => {
						this.$router.push(`/${this.user.username}`);
						UIkit.notification('User updated', {status: 'success', pos: 'bottom-center'});
					})
					.catch((err) => {
github sourcepods / sourcepods / ui / user / edit.vue View on Github external
.catch((err) => {
						UIkit.notification('Updating user failed', {status: 'danger', pos:'bottom-center'})
					})
			}
github MitchTalmadge / Emoji-Tools-Rewritten / src / scripts / util / uikit.ts View on Github external
public static showSuccessNotification(message: string) {
        UIkit.notification(message, {status: 'success'});
    }
github xtremespb / zoia2 / modules_unused / destinations / frontend / components / admin / DestinationsList.jsx View on Github external
        }).catch(() => this.destinationsListTable.current.setLoading(false) && UIkit.notification(i18n._(t`Cannot delete one or more destinations`), { status: 'danger' }));
    }
github xtremespb / zoia2 / modules_unused / destinations / frontend / components / admin / DestinationsList.jsx View on Github external
onDestinationsTableSaveError = (data, i18n) => {
        if (data) {
            if (data.statusCode === 403) {
                this.deauthorize();
            }
            switch (data.errorCode) {
                case 1:
                    UIkit.notification(i18n._(t`Record with the entered value already exists`), { status: 'danger' });
                    break;
                case 2:
                    UIkit.notification(i18n._(t`Invalid format`), { status: 'danger' });
                    break;
                default:
                    UIkit.notification(i18n._(t`Could not save data`), { status: 'danger' });
            }
        } else {
            UIkit.notification(i18n._(t`Could not save data`), { status: 'danger' });
        }
    }
github MitchTalmadge / Emoji-Tools-Rewritten / src / scripts / util / uikit.ts View on Github external
public static showWarningNotification(message: string) {
        UIkit.notification(message, {status: 'warning'});
    }
github MitchTalmadge / Emoji-Tools-Rewritten / src / scripts / util / uikit.ts View on Github external
public static showInfoNotification(message: string) {
        UIkit.notification(message, {status: 'primary'});
    }
github sourcepods / sourcepods / ui / pages / settings / profile.vue View on Github external
.catch((err) => {
						UIkit.notification('Updating user failed', {status: 'danger', pos: 'bottom-center'})
					})
					.finally(() => this.setLoading(false))
github MitchTalmadge / Emoji-Tools-Rewritten / src / scripts / util / uikit.ts View on Github external
public static showDangerNotification(message: string) {
        UIkit.notification(message, {status: 'danger'});
    }
github MitchTalmadge / Emoji-Tools-Rewritten / src / scripts / util / uikit.ts View on Github external
public static showDefaultNotification(message: string) {
        UIkit.notification(message);
    }