Don't wait for the toaster to hide for continuing

pull/1/head
yann300 5 years ago committed by GitHub
parent 65a30f3a16
commit b6e9ca1dff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/app/files/fileManager.js

@ -154,7 +154,7 @@ class FileManager extends Plugin {
if (canCall) {
this._setFileInternal(path, content)
// inform the user about modification after permission is granted and even if permission was saved before
await toaster(yo`
toaster(yo`
<div>
<i class="fas fa-exclamation-triangle text-danger mr-1"></i>
<span>
@ -164,7 +164,7 @@ class FileManager extends Plugin {
</span>${path}
</span>
</div>
`, '', { time: 5000 })
`, '', { time: 3000 })
}
}
this._setFileInternal(path, content)

Loading…
Cancel
Save