[Types] label -> name

Change label to name, log a warning to console if a typeDef
is registered with a label.

Fixes https://github.com/nasa/openmct/issues/1568.
This commit is contained in:
Pete Richards
2017-05-09 17:55:15 -07:00
parent 4e15d8fa1f
commit c5161887e2
4 changed files with 26 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ define([
})
});
openmct.types.addType("generator", {
label: "Sine Wave Generator",
name: "Sine Wave Generator",
description: "For development use. Generates example streaming telemetry data using a simple sine wave algorithm.",
cssClass: "icon-telemetry",
creatable: true,