mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
This reverts commit e531759984
.
This commit is contained in:
parent
9882cfb400
commit
29cbbde599
1 changed files with 4 additions and 8 deletions
|
@ -1,7 +1,6 @@
|
|||
import React from 'react';
|
||||
import _ from 'lodash';
|
||||
import angular from 'angular';
|
||||
import MarkdownIt from 'markdown-it';
|
||||
import { metadata } from 'ui/metadata';
|
||||
import { formatMsg, formatStack } from './lib';
|
||||
import { fatalError } from './fatal_error';
|
||||
|
@ -338,7 +337,7 @@ Notifier.prototype.warning = function (msg, opts, cb) {
|
|||
*/
|
||||
let bannerId;
|
||||
let bannerTimeoutId;
|
||||
Notifier.prototype.banner = function (content = '') {
|
||||
Notifier.prototype.banner = function (content) {
|
||||
const BANNER_PRIORITY = 100;
|
||||
|
||||
const dismissBanner = () => {
|
||||
|
@ -346,17 +345,14 @@ Notifier.prototype.banner = function (content = '') {
|
|||
clearTimeout(bannerTimeoutId);
|
||||
};
|
||||
|
||||
const markdownIt = new MarkdownIt({
|
||||
html: false,
|
||||
linkify: true
|
||||
});
|
||||
|
||||
const banner = (
|
||||
<EuiCallOut
|
||||
title="Attention"
|
||||
iconType="help"
|
||||
>
|
||||
<div dangerouslySetInnerHTML={{ __html: markdownIt.render(content) }} />
|
||||
<p>
|
||||
{content}
|
||||
</p>
|
||||
|
||||
<EuiButton type="primary" size="s" onClick={dismissBanner}>
|
||||
Dismiss
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue