|
|
|
@ -283,10 +283,12 @@ export const CompilerApiMixin = (Base) => class extends Base { |
|
|
|
|
if (success) { |
|
|
|
|
// forwarding the event to the appManager infra
|
|
|
|
|
this.emit('compilationFinished', source.target, source, 'soljson', data, input, version) |
|
|
|
|
if (data.errors && data.errors.length > 0) { |
|
|
|
|
const hideWarnings = await this.getAppParameter('hideWarnings') |
|
|
|
|
if (data.errors && data.errors.length > 0 && !hideWarnings) { |
|
|
|
|
const warningsCount = data.errors.length |
|
|
|
|
this.statusChanged({ |
|
|
|
|
key: data.errors.length, |
|
|
|
|
title: `compilation finished successful with warning${data.errors.length > 1 ? 's' : ''}`, |
|
|
|
|
key: warningsCount, |
|
|
|
|
title: `compilation successful with ${warningsCount} warning${warningsCount > 1 ? 's' : ''}`, |
|
|
|
|
type: 'warning' |
|
|
|
|
}) |
|
|
|
|
} else this.statusChanged({ key: 'succeed', title: 'compilation successful', type: 'success' }) |
|
|
|
|