core: use version in qs for static files to ensure latest are loaded

This commit is contained in:
Jens Langhammer
2021-01-16 14:15:42 +01:00
parent 192dbe05c4
commit c1fbfc63ab
3 changed files with 16 additions and 14 deletions

View File

@ -34,7 +34,8 @@ export class NotificationDrawer extends LitElement {
}
renderItem(item: Notification): TemplateResult {
const delta = Date.now() - parseInt(item.created, 10);
const delta = Date.now() - (parseInt(item.created, 10) * 1000);
// TODO: more flexible display, minutes and seconds
const age = `${Math.round(delta / 1000 / 3600)} Hours ago`;
let level = "";
switch (item.severity) {
@ -60,7 +61,7 @@ export class NotificationDrawer extends LitElement {
</h2>
</div>
<div class="pf-c-notification-drawer__list-item-description">
${item.body.substring(0, 75)}
${item.body}
</div>
<div class="pf-c-notification-drawer__list-item-timestamp">
${age}