pull/3094/head
LianaHus 5 years ago
parent 65d0fb9ab2
commit 38726ef706
  1. 4
      src/app/files/fileManager.js
  2. 5
      src/app/ui/tooltip.js

@ -138,7 +138,7 @@ class FileManager extends FileSystemApi {
if (this.currentRequest) {
let reject = false
let saveAsCopy = false
function acceptFileRewriting (e, toaster) {
function acceptFileRewriting (e, toaster) {
reject = false
e.target.innerHTML = 'Accepted'
toaster.hide()
@ -200,7 +200,7 @@ class FileManager extends FileSystemApi {
})
}
_saveAsCopy(path, content) {
_saveAsCopy (path, content) {
const fileProvider = this.fileProviderOf(path)
if (fileProvider) {
helper.createNonClashingNameWithPrefix(path, fileProvider, '', (error, copyName) => {

@ -55,10 +55,11 @@ class Toaster {
const shortTooltipText = (canShorten && tooltipText.length > 201) ? tooltipText.substring(0, 200) + '...' : tooltipText
this.resolveFn = resolve
function showFullMessage() {
function showFullMessage () {
modal.alert(tooltipText)
}
function closeTheToaster(self) {
function closeTheToaster (self) {
self.hide()
over()
resolve()

Loading…
Cancel
Save