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
99bae2a0
Unverified
Commit
99bae2a0
authored
Apr 30, 2019
by
yann300
Committed by
GitHub
Apr 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update analysis-tab.js
parent
0cca38bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
analysis-tab.js
src/app/tabs/analysis-tab.js
+4
-6
No files found.
src/app/tabs/analysis-tab.js
View file @
99bae2a0
...
...
@@ -27,19 +27,17 @@ class AnalysisTab extends BaseApi {
}
render
()
{
var
staticanalysis
=
new
StaticAnalysis
()
staticanalysis
.
event
.
register
(
'staticAnaysisWarning'
,
(
count
)
=>
{
if
(
!
this
.
staticanalysis
)
this
.
staticanalysis
=
new
StaticAnalysis
()
this
.
staticanalysis
.
event
.
register
(
'staticAnaysisWarning'
,
(
count
)
=>
{
if
(
count
)
{
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'exclamation-triangle'
,
title
:
count
+
' warnings'
,
type
:
'warning'
})
}
else
{
this
.
events
.
emit
(
'statusChanged'
,
{
key
:
'check'
,
title
:
'no warning'
,
type
:
'success'
})
}
})
this
.
registry
.
put
({
api
:
staticanalysis
,
name
:
'staticanalysis'
})
this
.
registry
.
put
({
api
:
this
.
staticanalysis
,
name
:
'staticanalysis'
})
if
(
this
.
el
)
return
this
.
el
this
.
el
=
yo
`<div class="
${
css
.
analysisTabView
}
" id="staticanalysisView">
${
staticanalysis
.
render
()}
</div>`
return
this
.
el
return
yo
`<div class="
${
css
.
analysisTabView
}
" id="staticanalysisView">
${
this
.
staticanalysis
.
render
()}
</div>`
}
}
...
...
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