mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge branch 'dev' into new-export-dialog
This commit is contained in:
commit
3e9d2a8062
@ -306,8 +306,11 @@ Node.prototype.metric = function(eventname, msg, metricValue) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* status: { fill:"red|green", shape:"dot|ring", text:"blah" }
|
* status: { fill:"red|green", shape:"dot|ring", text:"blah" }
|
||||||
|
* or
|
||||||
|
* status: "simple text status"
|
||||||
*/
|
*/
|
||||||
Node.prototype.status = function(status) {
|
Node.prototype.status = function(status) {
|
||||||
|
if (typeof(status) === "string") { status = {text:status}; }
|
||||||
this._flow.handleStatus(this,status);
|
this._flow.handleStatus(this,status);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user