mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
chore: Remove logging and use the updated config param
This commit is contained in:
parent
1ed35f3dc1
commit
08dc5a4f97
@ -46,9 +46,8 @@ export class TextPanelCtrl extends PanelCtrl {
|
|||||||
$scope.$watch(
|
$scope.$watch(
|
||||||
renderWhenChanged,
|
renderWhenChanged,
|
||||||
_.throttle(() => {
|
_.throttle(() => {
|
||||||
console.log('this.render', new Date());
|
|
||||||
this.render();
|
this.render();
|
||||||
}, 2000, {trailing: true, leading: true})
|
}, 100)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,9 +92,8 @@ export class TextPanelCtrl extends PanelCtrl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateContent(html: string) {
|
updateContent(html: string) {
|
||||||
const { sanitizeInput } = config;
|
const { disableSanitizeInput } = config;
|
||||||
html = sanitizeInput ? sanitize(html) : html;
|
html = disableSanitizeInput ? html : sanitize(html);
|
||||||
console.log('html', html);
|
|
||||||
try {
|
try {
|
||||||
this.content = this.$sce.trustAsHtml(this.templateSrv.replace(html, this.panel.scopedVars));
|
this.content = this.$sce.trustAsHtml(this.templateSrv.replace(html, this.panel.scopedVars));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user