Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
5dd74bc9
Commit
5dd74bc9
authored
Jan 31, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix fileExternakkyChanged handler
parent
25dc9104
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
file-explorer.js
src/app/files/file-explorer.js
+3
-6
No files found.
src/app/files/file-explorer.js
View file @
5dd74bc9
...
@@ -64,8 +64,8 @@ function fileExplorer (appAPI, files) {
...
@@ -64,8 +64,8 @@ function fileExplorer (appAPI, files) {
return
yo
`<div>This file has been changed outside of Remix IDE.</div>`
return
yo
`<div>This file has been changed outside of Remix IDE.</div>`
}
}
this
.
files
.
event
.
register
(
'fileExternallyChanged'
,
(
path
,
content
)
=>
{
this
.
files
.
event
.
register
(
'fileExternallyChanged'
,
(
path
,
file
)
=>
{
if
(
appAPI
.
c
urrentFile
()
===
path
&&
appAPI
.
currentContent
()
!==
content
)
{
if
(
appAPI
.
c
onfig
.
get
(
'currentFile'
)
===
path
&&
appAPI
.
currentContent
()
!==
file
.
content
)
{
modalDialog
(
path
+
' changed'
,
remixdDialog
(),
modalDialog
(
path
+
' changed'
,
remixdDialog
(),
{
{
label
:
'Keep the content displayed in Remix'
,
label
:
'Keep the content displayed in Remix'
,
...
@@ -74,7 +74,7 @@ function fileExplorer (appAPI, files) {
...
@@ -74,7 +74,7 @@ function fileExplorer (appAPI, files) {
{
{
label
:
'Replace by the new content'
,
label
:
'Replace by the new content'
,
fn
:
()
=>
{
fn
:
()
=>
{
appAPI
.
setText
(
content
)
appAPI
.
setText
(
file
.
content
)
}
}
}
}
)
)
...
@@ -292,9 +292,6 @@ function fileExplorer (appAPI, files) {
...
@@ -292,9 +292,6 @@ function fileExplorer (appAPI, files) {
}
}
}
}
function
fileFocus
(
path
)
{
function
fileFocus
(
path
)
{
var
filepath
=
appAPI
.
config
.
get
(
'currentFile'
)
var
filepath
=
appAPI
.
config
.
get
(
'currentFile'
)
if
(
filepath
===
path
)
return
if
(
filepath
===
path
)
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment