From 9e5fa522784ddcf36f7463b5cb3e550a399ab2e8 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Mon, 31 Aug 2020 13:04:53 +0530 Subject: [PATCH] fix: Add empty state for events [wip] --- frappe/public/images/ui-states/event-empty-state.svg | 9 +++++++++ .../public/images/ui-states/notification-empty-state.svg | 9 +++++++++ .../public/js/frappe/ui/notifications/notifications.js | 9 ++++++--- 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 frappe/public/images/ui-states/event-empty-state.svg create mode 100644 frappe/public/images/ui-states/notification-empty-state.svg diff --git a/frappe/public/images/ui-states/event-empty-state.svg b/frappe/public/images/ui-states/event-empty-state.svg new file mode 100644 index 0000000000..18ac2100fe --- /dev/null +++ b/frappe/public/images/ui-states/event-empty-state.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/frappe/public/images/ui-states/notification-empty-state.svg b/frappe/public/images/ui-states/notification-empty-state.svg new file mode 100644 index 0000000000..498636be21 --- /dev/null +++ b/frappe/public/images/ui-states/notification-empty-state.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/frappe/public/js/frappe/ui/notifications/notifications.js b/frappe/public/js/frappe/ui/notifications/notifications.js index 5abd36b15a..9e71a16274 100644 --- a/frappe/public/js/frappe/ui/notifications/notifications.js +++ b/frappe/public/js/frappe/ui/notifications/notifications.js @@ -457,9 +457,12 @@ class EventsView extends BaseNotificaitonsView { }; html = event_list.map(get_event_html).join(''); } else { - html = `
  • - ${__('No Events Today')} -
  • `; + html = ` +
    + + ${__('No Events Today')} +
    + `; } this.container.html(html);