mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
unifying toast stsyle between lua and js
This commit is contained in:
parent
acdefc365c
commit
e5facb83d5
3 changed files with 8 additions and 5 deletions
2
httpdocs/js/ntop.min.js
vendored
2
httpdocs/js/ntop.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -29,11 +29,14 @@ class AlertNotification {
|
|||
|
||||
const $toastHeader = $(`<div class="toast-header bg-${this.style.bg} border-${this.style.bg} ${this.style.text}">
|
||||
<strong class='mr-auto'><i class='fas ${this.style.icon}'></i> ${this.title}</strong>
|
||||
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>`);
|
||||
const $toastBody = $(`<div class="toast-body bg-${this.style.bg} border-${this.style.bg} ${this.style.text}"><span>${this.body}</span></div>`);
|
||||
const $toastBody = $(`<div class="toast-body">${this.body}</div>`);
|
||||
|
||||
if (this.link != undefined && this.link != "") {
|
||||
const $anchor = $(`<a href='${this.link}'>Click!</a>`);
|
||||
if (this.action && this.action.link != undefined && this.action.link != "") {
|
||||
const $anchor = $(`<a href='${this.action.link}'>${this.action.label}</a>`);
|
||||
$toastBody.append($anchor);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue