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
208203c3
Commit
208203c3
authored
May 23, 2018
by
serapath
Committed by
yann300
Jun 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support Tab: refactor away yo.update
parent
e1ff449b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
support-tab.js
src/app/tabs/support-tab.js
+7
-4
No files found.
src/app/tabs/support-tab.js
View file @
208203c3
...
@@ -18,15 +18,18 @@ module.exports = class SupportTab {
...
@@ -18,15 +18,18 @@ module.exports = class SupportTab {
self
.
_components
=
{}
self
.
_components
=
{}
self
.
_events
.
app
.
register
(
'tabChanged'
,
(
tabName
)
=>
{
self
.
_events
.
app
.
register
(
'tabChanged'
,
(
tabName
)
=>
{
if
(
tabName
!==
'Support'
||
self
.
data
.
gitterIsLoaded
)
return
if
(
tabName
!==
'Support'
||
self
.
data
.
gitterIsLoaded
)
return
if
(
!
self
.
_view
.
gitterIframe
)
self
.
_view
.
gitterIframe
=
yo
`<iframe class="
${
css
.
chatIframe
}
" src='https://gitter.im/ethereum/remix/~embed'>`
const
iframe
=
yo
`<iframe class="
${
css
.
chatIframe
}
" src='https://gitter.im/ethereum/remix/~embed'>`
yo
.
update
(
self
.
_view
.
el
,
self
.
render
())
self
.
_view
.
gitterIframe
.
parentNode
.
replaceChild
(
iframe
,
self
.
_view
.
gitterIframe
)
self
.
_view
.
gitterIframe
=
iframe
self
.
_view
.
el
.
style
.
display
=
'block'
self
.
_view
.
el
.
style
.
display
=
'block'
self
.
data
.
gitterIsLoaded
=
true
self
.
data
.
gitterIsLoaded
=
true
})
})
}
}
render
()
{
render
()
{
const
self
=
this
const
self
=
this
var
el
=
yo
`
if
(
self
.
_view
.
el
)
return
self
.
_view
.
el
self
.
_view
.
gitterIframe
=
yo
`<div></div>`
self
.
_view
.
el
=
yo
`
<div class="
${
css
.
supportTabView
}
" id="supportView">
<div class="
${
css
.
supportTabView
}
" id="supportView">
<div class="
${
css
.
infoBox
}
">
<div class="
${
css
.
infoBox
}
">
Have a question, found a bug or want to propose a feature? Have a look at the
Have a question, found a bug or want to propose a feature? Have a look at the
...
@@ -42,7 +45,7 @@ module.exports = class SupportTab {
...
@@ -42,7 +45,7 @@ module.exports = class SupportTab {
</div>
</div>
</div>`
</div>`
if
(
!
self
.
_view
.
el
)
self
.
_view
.
el
=
el
if
(
!
self
.
_view
.
el
)
self
.
_view
.
el
=
el
return
el
return
self
.
_view
.
el
function
openLink
()
{
window
.
open
(
'https://gitter.im/ethereum/remix'
)
}
function
openLink
()
{
window
.
open
(
'https://gitter.im/ethereum/remix'
)
}
}
}
}
}
...
...
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