Skip to content

Commit

Permalink
Redo changes after conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed May 3, 2023
1 parent 07ad15c commit 647fd18
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -20,7 +20,7 @@ function notify(message, options) {
}

const notifications = {
/* Send and success notification */
/* Send a success notification */
success: (message, options) => {
notify(message, {
type: 'message', // @todo rename it to success
Expand All @@ -38,6 +38,15 @@ const notifications = {
});
},

/* Send a general notification */
notify: (message, options) => {
notify(message, {
type: 'message',
dismiss: true,
...options,
});
},

/* Ask the user a question */
ask: (message) => window.confirm(message),
};
Expand Down

0 comments on commit 647fd18

Please sign in to comment.