brotherton-erpnext/erpnext/public/js/hub/components/notification_message.js
2018-08-20 13:07:23 +05:30

21 lines
437 B
JavaScript

const NotificationMessage = (message) => {
const $message = $(`<div class="subpage-message">
<p class="text-muted flex">
<span>
${message}
</span>
<i class="octicon octicon-x text-extra-muted"></i>
</p>
</div>`);
$message.find('.octicon-x').on('click', () => {
$message.remove();
});
return $message;
}
export {
NotificationMessage
}