Bumped webpack and grunt, fixed notifications issue caused by minification
This commit is contained in:
parent
933eb5bb2f
commit
1791f83dcc
8 changed files with 3577 additions and 12995 deletions
|
|
@ -25,6 +25,8 @@ controllers
|
|||
import logging
|
||||
import socket
|
||||
import base64
|
||||
import hashlib
|
||||
import os
|
||||
|
||||
import markupsafe
|
||||
import ipaddress
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
import 'regenerator-runtime/runtime.js';
|
||||
import '@polymer/iron-ajax/iron-ajax.js';
|
||||
import './shared-styles.js';
|
||||
import './channelstream-connection/channelstream-connection.js';
|
||||
import './rhodecode-toast/rhodecode-toast.js';
|
||||
import './rhodecode-unsafe-html/rhodecode-unsafe-html.js';
|
||||
|
|
|
|||
|
|
@ -224,6 +224,7 @@ export class RhodecodeToast extends LitElement {
|
|||
}
|
||||
|
||||
handleNotification(data) {
|
||||
console.log('[RhodecodeToast] handleNotification called - DEBUG BUILD v2', data);
|
||||
if (!templateContext.rhodecode_user.notification_status && !data.message.force) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -231,6 +232,7 @@ export class RhodecodeToast extends LitElement {
|
|||
level: data.message.level,
|
||||
message: data.message.message
|
||||
}];
|
||||
console.log('[RhodecodeToast] toasts updated, count:', this.toasts.length);
|
||||
}
|
||||
|
||||
_gettext(x) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import {LitElement, html} from 'lit';
|
||||
import {unsafeHTML} from 'lit/directives/unsafe-html.js';
|
||||
|
||||
export class RhodecodeUnsafeHtml extends LitElement {
|
||||
static properties = {
|
||||
|
|
@ -11,13 +12,8 @@ export class RhodecodeUnsafeHtml extends LitElement {
|
|||
}
|
||||
|
||||
render() {
|
||||
return html`<slot></slot>`;
|
||||
}
|
||||
|
||||
updated(changedProperties) {
|
||||
if (changedProperties.has('text')) {
|
||||
this.innerHTML = this.text;
|
||||
}
|
||||
console.log('[RhodecodeUnsafeHtml] render() called, text:', this.text);
|
||||
return html`${unsafeHTML(this.text)}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue