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