Skip to content
Snippets Groups Projects
Commit be4e9645 authored by David Pisek's avatar David Pisek
Browse files

WIP

parent 5b70ca2f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -92,6 +92,16 @@ export const createAlert = ({
}
 
const createMessageNodes = (h) => {
if (asHTML) {
return [
h('div', {
domProps: {
innerHTML: sanitize(message),
},
}),
];
}
if (isEmpty(messageLinks)) {
return message;
}
Loading
Loading
@@ -182,12 +192,9 @@ export const createAlert = ({
attrs: {
'data-testid': `alert-${variant}`,
},
domProps: {
innerHTML: sanitize(message),
},
on,
},
// createMessageNodes(h),
createMessageNodes(h),
);
},
});
Loading
Loading
Loading
Loading
@@ -127,6 +127,7 @@ export default {
update(data) {
createAlert({
message: 'test <a href="/foo">Foo</a>',
asHTML: true,
});
 
const vulnerabilities = this.getVulnerabilitiesFromData(data);
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment