-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from fleetbase/dev-v0.2.2
v0.2.2
- Loading branch information
Showing
15 changed files
with
52,829 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<BasicDropdown @renderInPlace={{true}} @registerAPI={{this.registerAPI}} class="notification-tray next-user-button" ...attributes as |dd|> | ||
<dd.Trigger class="next-org-button-trigger flex-shrink-0"> | ||
<FaIcon @icon="inbox" /> | ||
{{#if this.notifications.length}} | ||
<div class="notification-tray-unread-notifications-badge">{{this.notifications.length}}</div> | ||
{{/if}} | ||
</dd.Trigger> | ||
<dd.Content class="notification-tray-panel-container"> | ||
<div class="notification-tray-panel"> | ||
<div> | ||
<div class="px-4 py-2 border-b border-gray-200 dark:border-gray-700 flex flex-row space-x-4"> | ||
<h1 class="text-black dark:text-gray-100 text-sm font-bold">{{pluralize this.notifications.length "Unread Notification"}}</h1> | ||
</div> | ||
<div class="h-48 overflow-y-scroll p-2"> | ||
{{#each this.notifications as |notification|}} | ||
<a href="javascript:;" class="notification-item {{if notification._isRemoving 'opacity-50'}}" {{on "click" (fn this.onClickNotification notification)}}> | ||
<h3 class="font-semibold text-small truncate">{{notification.data.subject}}</h3> | ||
<p class="text-xs mb-1.5 truncate">{{notification.data.message}}</p> | ||
<span class="text-xs">Received: {{notification.createdAgo}}</span> | ||
</a> | ||
{{else}} | ||
<div class="flex flex-1 items-center justify-center w-full h-full"> | ||
<span class="text-base text-gray-800 dark:text-gray-300 italic">No unread notifications</span> | ||
</div> | ||
{{/each}} | ||
</div> | ||
</div> | ||
<div class="px-2 py-1.5 border-t border-gray-200 dark:border-gray-700 flex flex-row space-x-4"> | ||
<LinkTo @route="console.notifications" class="notification-tray-view-all-link"> | ||
View all notifications | ||
</LinkTo> | ||
</div> | ||
</div> | ||
</dd.Content> | ||
</BasicDropdown> |
Oops, something went wrong.