laravel-mix
Version:
Laravel Mix is an elegant wrapper around Webpack for the 80% use case.
25 lines (22 loc) • 536 B
JavaScript
class DisableNotifications {
/**
* The API name for the component.
*/
name() {
return ['disableNotifications', 'disableSuccessNotifications'];
}
/**
* Register the component.
*/
register() {
if (this.caller === 'disableSuccessNotifications') {
Config.notifications = {
onSuccess: false,
onFailure: true
};
} else {
Config.notifications = false;
}
}
}
module.exports = DisableNotifications;