Commit 74d2787e authored by LianaHus's avatar LianaHus

standard fix.

parent b8e4b0ef
...@@ -153,7 +153,7 @@ class FileManager extends FileSystemApi { ...@@ -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 { ...@@ -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') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment