bpmn-js-bpmnlint
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -59,3 +59,3 @@ import linter from 'bpmnlint/lib/linter'; | ||
var button = this._button = domify( | ||
'<button class="bpmn-js-bpmnlint-button"></button>' | ||
'<button class="bpmn-js-bpmnlint-button inactive"></button>' | ||
); | ||
@@ -305,4 +305,5 @@ | ||
this._button.classList.add('success'); | ||
this._button.classList.remove('error'); | ||
this._button.classList.remove('inactive'); | ||
this._button.classList.remove('error'); | ||
this._button.classList.remove('warning'); | ||
} else if (state === 'error') { | ||
@@ -312,6 +313,13 @@ this._button.classList.add('error'); | ||
this._button.classList.remove('success'); | ||
this._button.classList.remove('warning'); | ||
} else if (state === 'warning') { | ||
this._button.classList.add('warning'); | ||
this._button.classList.remove('error'); | ||
this._button.classList.remove('inactive'); | ||
this._button.classList.remove('success'); | ||
} else if (state === 'inactive') { | ||
this._button.classList.add('inactive'); | ||
this._button.classList.remove('error'); | ||
this._button.classList.remove('success'); | ||
this._button.classList.remove('error'); | ||
this._button.classList.remove('warning'); | ||
} | ||
@@ -323,5 +331,3 @@ | ||
Linting.prototype.updateButton = function() { | ||
if (this._lintingActive) { | ||
var errors = 0, | ||
@@ -367,3 +373,5 @@ warnings = 0; | ||
domRemove(html); | ||
if (html) { | ||
domRemove(html); | ||
} | ||
}; | ||
@@ -370,0 +378,0 @@ |
{ | ||
"name": "bpmn-js-bpmnlint", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "bpmn-js integration for bpmnlint", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
51569
18
471