pull/1/head
LianaHus 6 years ago
parent 2f230ccb40
commit b082b04dcf
  1. 4
      src/app/ui/tooltip.js

@ -23,7 +23,7 @@ class Toaster {
}, 2000) }, 2000)
animation(this.tooltip, css.animateTop.className) animation(this.tooltip, css.animateTop.className)
} }
render (tooltipText, action, opts) { render (tooltipText, actionElement, opts) {
opts = defaultOptions(opts) opts = defaultOptions(opts)
let canShorten = true let canShorten = true
if (tooltipText instanceof Element) { if (tooltipText instanceof Element) {
@ -53,7 +53,7 @@ class Toaster {
<span class="px-2"> <span class="px-2">
${shortTooltipText} ${shortTooltipText}
${button} ${button}
${action} ${actionElement}
</span> </span>
<span style="align-self: baseline;"> <span style="align-self: baseline;">
<button class="fas fa-times btn-info mx-1 p-0" onclick=${() => { <button class="fas fa-times btn-info mx-1 p-0" onclick=${() => {

Loading…
Cancel
Save