standard fix.

pull/1/head
LianaHus 6 years ago
parent b8e4b0ef33
commit 74d2787e35
  1. 2
      src/app/files/fileManager.js
  2. 2
      src/app/ui/tooltip.js

@ -153,7 +153,7 @@ class FileManager extends FileSystemApi {
<div> <div>
<i class="fas fa-exclamation-triangle text-danger mr-1"></i> <i class="fas fa-exclamation-triangle text-danger mr-1"></i>
<span> <span>
${this.currentRequest.from}<span class="text-warning"> is modyfing </span>${path} ${this.currentRequest.from}<span class="text-danger"> is modyfing </span>${path}
</span> </span>
</div>`, actions, { time: 4000 }) </div>`, actions, { time: 4000 })
if (reject) throw new Error(`set file operation on ${path} aborted by user.`) if (reject) throw new Error(`set file operation on ${path} aborted by user.`)

@ -25,7 +25,7 @@ class Toaster {
render (tooltipText, action, opts) { render (tooltipText, action, opts) {
opts = defaultOptions(opts) opts = defaultOptions(opts)
let canShorten = true let canShorten = true
if (tooltipText instanceof Element) { if (tooltipText['nodeName']) {
canShorten = false canShorten = false
} else { } else {
if (typeof tooltipText === 'object') { if (typeof tooltipText === 'object') {

Loading…
Cancel
Save