Skip to content

Commit

Permalink
refactor(button): Only show alert about needed integration after a en…
Browse files Browse the repository at this point in the history
…ttiy config has been selected
  • Loading branch information
zachowj committed Feb 17, 2022
1 parent b566dd4 commit c35929d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/editor/exposenode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export function init(n: HassNodeProperties) {
renderAlert();
break;
case 'ha-button':
renderAlert('1.0.4');
if ($('#node-input-entityConfig').val() !== '_ADD_') {
renderAlert('1.0.4');
}
break;
case 'ha-device':
renderAlert('0.5.0');
Expand All @@ -84,7 +86,9 @@ function render() {
renderAlert();
break;
case 'ha-button':
renderAlert('1.0.4');
if ($('#node-input-entityConfig').val() !== '_ADD_') {
renderAlert('1.0.4');
}
break;
default:
renderEventNode();
Expand Down

0 comments on commit c35929d

Please sign in to comment.