mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixing unsafe html binding
This commit is contained in:
parent
7256d41d3f
commit
3f8b1651fd
@ -158,8 +158,6 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
self.indices = [self.current.index.default];
|
self.indices = [self.current.index.default];
|
||||||
console.log(self.indices);
|
|
||||||
console.log('sending refresh');
|
|
||||||
querySrv.resolve().then(function(){$rootScope.$broadcast('refresh');});
|
querySrv.resolve().then(function(){$rootScope.$broadcast('refresh');});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
<div ng-repeat='alert in dashAlerts.list' class="alert-{{alert.severity}} dashboard-notice" ng-show="$last">
|
<div ng-repeat='alert in dashAlerts.list' class="alert-{{alert.severity}} dashboard-notice" ng-show="$last">
|
||||||
<button type="button" class="close" ng-click="dashAlerts.clear(alert)" style="padding-right:50px">×</button>
|
<button type="button" class="close" ng-click="dashAlerts.clear(alert)" style="padding-right:50px">×</button>
|
||||||
<strong>{{alert.title}}</strong> <span ng-bind-html-unsafe='alert.text'></span> <div style="padding-right:10px" class='pull-right small'> {{$index + 1}} alert(s) </div>
|
<strong>{{alert.title}}</strong> <span ng-bind-html='alert.text'></span> <div style="padding-right:10px" class='pull-right small'> {{$index + 1}} alert(s) </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar navbar-static-top">
|
<div class="navbar navbar-static-top">
|
||||||
<div class="navbar-inner">
|
<div class="navbar-inner">
|
||||||
|
Loading…
Reference in New Issue
Block a user