global.modal('Copy File Failed','Unexpected error while copying file: '+src,'Close',async()=>{})
props.modal('Copy File Failed','Unexpected error while copying file: '+src,'Close',async()=>{})
}
}
constcopyFolder=(src:string,dest:string)=>{
try{
global.dispatchCopyFolder(src,dest)
props.dispatchCopyFolder(src,dest)
}catch(error){
global.modal('Copy Folder Failed','Unexpected error while copying folder: '+src,'Close',async()=>{})
props.modal('Copy Folder Failed','Unexpected error while copying folder: '+src,'Close',async()=>{})
}
}
constpublishToGist=(path?:string,type?:string)=>{
global.modal('Create a public gist',`Are you sure you want to anonymously publish all your files in the ${name} workspace as a public gist on github.com?`,'OK',()=>toGist(path,type),'Cancel',()=>{})
props.modal('Create a public gist',`Are you sure you want to anonymously publish all your files in the ${name} workspace as a public gist on github.com?`,'OK',()=>toGist(path,type),'Cancel',()=>{})
global.modal('Create a public gist','Are you sure you want to push changes to remote gist file on github.com?','OK',()=>toGist(path,type),'Cancel',()=>{})
props.modal('Create a public gist','Are you sure you want to push changes to remote gist file on github.com?','OK',()=>toGist(path,type),'Cancel',()=>{})
global.modal('Create a public gist',`Are you sure you want to anonymously publish all your files in the ${path} folder as a public gist on github.com?`,'OK',()=>toGist(path,type),'Cancel',()=>{})
props.modal('Create a public gist',`Are you sure you want to anonymously publish all your files in the ${path} folder as a public gist on github.com?`,'OK',()=>toGist(path,type),'Cancel',()=>{})
global.modal('Create a public gist',`Are you sure you want to anonymously publish ${path} file as a public gist on github.com?`,'OK',()=>toGist(path,type),'Cancel',()=>{})
props.modal('Create a public gist',`Are you sure you want to anonymously publish ${path} file as a public gist on github.com?`,'OK',()=>toGist(path,type),'Cancel',()=>{})