Commit 640882f8 authored by LianaHus's avatar LianaHus

new satus icons

parent b360ebe0
......@@ -29,10 +29,12 @@ class AnalysisTab extends BaseApi {
render () {
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 {
if (count > 0) {
this.events.emit('statusChanged', {key: count.toString(), title: count + ' warnings', type: 'warning'})
} else if (count === 0) {
this.events.emit('statusChanged', {key: 'check', title: 'no warning', type: 'success'})
} else {
this.events.emit('statusChanged', {key: '', title: '', type: ''})
}
})
this.registry.put({api: this.staticanalysis, name: 'staticanalysis'})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment