Merge branch 'dev' of github.com:node-red/node-red into dev

This commit is contained in:
Nick O'Leary
2019-04-25 11:44:55 +01:00

View File

@@ -306,8 +306,11 @@ Node.prototype.metric = function(eventname, msg, metricValue) {
/**
* status: { fill:"red|green", shape:"dot|ring", text:"blah" }
* or
* status: "simple text status"
*/
Node.prototype.status = function(status) {
if (typeof(status) === "string") { status = {text:status}; }
this._flow.handleStatus(this,status);
};