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
7cb3f96c
Commit
7cb3f96c
authored
Apr 08, 2019
by
LianaHus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
activation of home tab on setting->home
parent
f1d5f822
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
editor-panel.js
src/app/panels/editor-panel.js
+7
-1
tab-proxy.js
src/app/panels/tab-proxy.js
+4
-0
No files found.
src/app/panels/editor-panel.js
View file @
7cb3f96c
...
...
@@ -55,8 +55,14 @@ class EditorPanel {
self
.
_view
.
editor
.
style
.
display
=
'none'
self
.
_components
.
contextView
.
hide
()
self
.
_view
.
mainPanel
.
style
.
display
=
'block'
self
.
tabProxy
.
sh
}
self
.
appManager
.
event
.
on
(
'ensureActivated'
,
(
name
)
=>
{
if
(
name
===
'home'
)
{
showApp
(
name
)
}
})
self
.
appManager
.
event
.
on
(
'ensureActivated'
,
(
name
)
=>
{
if
(
name
===
'home'
)
{
showApp
(
name
)
self
.
tabProxy
.
showTab
(
'home'
)
}
})
/*
We listen here on event from the tab component to display / hide the editor and mainpanel
depending on the content that should be displayed
...
...
src/app/panels/tab-proxy.js
View file @
7cb3f96c
...
...
@@ -99,6 +99,10 @@ export class TabProxy {
}
}
}
showTab
(
name
)
{
this
.
_view
.
filetabs
.
activateTab
(
name
)
}
addTab
(
name
,
switchTo
,
close
,
kind
)
{
var
slash
=
name
.
split
(
'/'
)
...
...
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