no notifications text

This commit is contained in:
Martti Malmi 2021-08-18 15:11:46 +03:00
parent dd97b237e2
commit ac9778db9d

View File

@ -24,6 +24,9 @@ export default class Notifications extends View {
return html` return html`
<div class="centered-container"> <div class="centered-container">
<h3>${t('notifications')}</h3> <h3>${t('notifications')}</h3>
${Object.keys(this.notifications).length === 0 ? html`'
<p>No notifications yet</p>
`:''}
${Object.keys(this.notifications).sort().reverse().map(k => { ${Object.keys(this.notifications).sort().reverse().map(k => {
const notification = this.notifications[k]; const notification = this.notifications[k];
return html` return html`