From 640882f851bf04d8bcb662fc4af318bbde03dfa5 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 2 May 2019 22:45:45 +0200 Subject: [PATCH] new satus icons --- src/app/tabs/analysis-tab.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/tabs/analysis-tab.js b/src/app/tabs/analysis-tab.js index 196252d45a..54cd001f05 100644 --- a/src/app/tabs/analysis-tab.js +++ b/src/app/tabs/analysis-tab.js @@ -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'})