Update FE pin_type usage to reflect new choices

pull/925/head
Rick Carlino 2018-07-22 14:18:39 -05:00
parent 894b91c79d
commit bfd2d7d4b6
3 changed files with 9 additions and 7 deletions

View File

@ -51,7 +51,7 @@
"css-loader": "0.28.11",
"enzyme": "^3.1.0",
"enzyme-adapter-react-16": "^1.1.0",
"farmbot": "6.2.1",
"farmbot": "6.2.2",
"farmbot-toastr": "^1.0.3",
"fastclick": "^1.0.6",
"file-loader": "1.1.11",

View File

@ -16,11 +16,12 @@ import { StepParams } from "../interfaces";
import { editStep } from "../../api/crud";
import { ShouldDisplay, Feature } from "../../devices/interfaces";
/** `headingIds` required to group the three kinds of pins. */
/** `headingIds` required to group the four kinds of pins. */
export enum PinGroupName {
Sensor = "Sensor",
Peripheral = "Peripheral",
RPi = "Raspberry Pi",
BoxLed3 = "Box LED (3)",
BoxLed4 = "Box LED (4)",
Pin = "Pin",
Position = "Position"
}
@ -91,7 +92,8 @@ export const pinsAsDropDownsReadPin =
const TYPE_MAPPING: Record<AllowedPinTypes, PinGroupName> = {
"Peripheral": PinGroupName.Peripheral,
"Sensor": PinGroupName.Sensor,
"RPi": PinGroupName.RPi
"BoxLed3": PinGroupName.BoxLed3,
"BoxLed4": PinGroupName.BoxLed4,
};
export const isPinType =

View File

@ -2373,9 +2373,9 @@ farmbot-toastr@^1.0.0, farmbot-toastr@^1.0.3:
farmbot-toastr "^1.0.0"
typescript "^2.3.4"
farmbot@6.2.1:
version "6.2.1"
resolved "https://registry.yarnpkg.com/farmbot/-/farmbot-6.2.1.tgz#53c30fd9feb3ce7ca870cb3479f39ce8344b212d"
farmbot@6.2.2:
version "6.2.2"
resolved "https://registry.yarnpkg.com/farmbot/-/farmbot-6.2.2.tgz#cb0c9a88ac0397a6fed39a1847035769901cd01c"
dependencies:
mqtt "2.15.0"