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
c291bec9
Commit
c291bec9
authored
May 19, 2018
by
serapath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CompileTab: refactor merge event listener
parent
66144ce3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
compile-tab.js
src/app/tabs/compile-tab.js
+9
-10
No files found.
src/app/tabs/compile-tab.js
View file @
c291bec9
...
@@ -55,15 +55,6 @@ class CompileTab {
...
@@ -55,15 +55,6 @@ class CompileTab {
warnCompilationSlow
.
style
.
display
=
'none'
warnCompilationSlow
.
style
.
display
=
'none'
compileIcon
.
setAttribute
(
'title'
,
'compiler is loading, please wait a few moments.'
)
compileIcon
.
setAttribute
(
'title'
,
'compiler is loading, please wait a few moments.'
)
})
})
self
.
_events
.
compiler
.
register
(
'compilationFinished'
,
function
finish
()
{
if
(
!
compileIcon
)
return
var
compileTab
=
document
.
querySelector
(
'.compileView'
)
compileTab
.
style
.
color
=
styles
.
colors
.
black
compileIcon
.
style
.
color
=
styles
.
colors
.
black
compileIcon
.
classList
.
remove
(
`
${
css
.
spinningIcon
}
`
)
compileIcon
.
classList
.
remove
(
`
${
css
.
bouncingIcon
}
`
)
compileIcon
.
setAttribute
(
'title'
,
'idle'
)
})
self
.
_events
.
compiler
.
register
(
'compilationStarted'
,
function
start
()
{
self
.
_events
.
compiler
.
register
(
'compilationStarted'
,
function
start
()
{
if
(
!
compileIcon
)
return
if
(
!
compileIcon
)
return
errorContainer
.
innerHTML
=
''
errorContainer
.
innerHTML
=
''
...
@@ -76,7 +67,15 @@ class CompileTab {
...
@@ -76,7 +67,15 @@ class CompileTab {
compileIcon
.
classList
.
remove
(
`
${
css
.
spinningIcon
}
`
)
compileIcon
.
classList
.
remove
(
`
${
css
.
spinningIcon
}
`
)
compileIcon
.
setAttribute
(
'title'
,
''
)
compileIcon
.
setAttribute
(
'title'
,
''
)
})
})
self
.
_events
.
compiler
.
register
(
'compilationFinished'
,
function
(
success
,
data
,
source
)
{
self
.
_events
.
compiler
.
register
(
'compilationFinished'
,
function
finish
(
success
,
data
,
source
)
{
if
(
compileIcon
)
{
var
compileTab
=
document
.
querySelector
(
'.compileView'
)
compileTab
.
style
.
color
=
styles
.
colors
.
black
compileIcon
.
style
.
color
=
styles
.
colors
.
black
compileIcon
.
classList
.
remove
(
`
${
css
.
spinningIcon
}
`
)
compileIcon
.
classList
.
remove
(
`
${
css
.
bouncingIcon
}
`
)
compileIcon
.
setAttribute
(
'title'
,
'idle'
)
}
// reset the contractMetadata list (used by the publish action)
// reset the contractMetadata list (used by the publish action)
self
.
data
.
contractsDetails
=
{}
self
.
data
.
contractsDetails
=
{}
// refill the dropdown list
// refill the dropdown list
...
...
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