|
|
|
@ -13,17 +13,15 @@ module.exports = class AnalysisTab { |
|
|
|
|
self.data = {} |
|
|
|
|
self._components = {} |
|
|
|
|
self._components.registry = localRegistry || globalRegistry |
|
|
|
|
self._deps = { |
|
|
|
|
rightHandPanel: self._components.registry.get('righthandpanel').api |
|
|
|
|
} |
|
|
|
|
self._deps = {} |
|
|
|
|
} |
|
|
|
|
render () { |
|
|
|
|
const self = this |
|
|
|
|
var staticanalysis = new StaticAnalysis() |
|
|
|
|
staticanalysis.event.register('staticAnaysisWarning', (count) => { |
|
|
|
|
if (count > 0) { |
|
|
|
|
const msg = `Static Analysis raised ${count} warning(s) that requires your attention. Click here to show the warning(s).` |
|
|
|
|
const settings = { type: 'staticAnalysisWarning', click: () => self._deps.rightHandPanel.focusOn('staticanalysisView'), useSpan: true } |
|
|
|
|
const msg = `Static Analysis raised ${count} warning(s) that requires your attention. Check Solidity Static Analysis Module for more information.` |
|
|
|
|
const settings = { type: 'staticAnalysisWarning', useSpan: true } |
|
|
|
|
self.event.trigger('newStaticAnaysisWarningMessage', [msg, settings]) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|