mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Make "alert" nodes more consistent.
This commit is contained in:
parent
148f6f418e
commit
e316c4734f
@ -16,7 +16,7 @@
|
||||
|
||||
<script type="text/x-red" data-template-name="notify">
|
||||
<div class="form-row">
|
||||
<label for="node-input-title"><i class="icon-tag"></i> Title</label>
|
||||
<label for="node-input-title"><i class="icon-flag"></i> Title</label>
|
||||
<input type="text" id="node-input-title" placeholder="Node-RED">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
|
@ -37,7 +37,7 @@ if (pushkey) {
|
||||
function ProwlNode(n) {
|
||||
RED.nodes.createNode(this,n);
|
||||
this.title = n.title;
|
||||
this.priority = n.priority * 1;
|
||||
this.priority = parseInt(n.priority);
|
||||
if (this.priority > 2) this.priority = 2;
|
||||
if (this.priority < -2) this.priority = -2;
|
||||
var node = this;
|
||||
|
Loading…
Reference in New Issue
Block a user