Farmbot-Web-App/frontend/sequences/step_tiles/mark_as/constants.ts

42 lines
1.1 KiB
TypeScript
Raw Normal View History

2018-09-11 15:53:27 -06:00
import { DropDownItem } from "../../../ui";
2019-04-02 13:59:37 -06:00
import { t } from "../../../i18next_wrapper";
2018-11-29 12:54:53 -07:00
export const MOUNTED_TO = t("Mounted to:");
2018-09-11 15:53:27 -06:00
2018-11-29 12:54:53 -07:00
export const DISMOUNT: DropDownItem = { label: t("Not Mounted"), value: 0 };
2018-09-11 15:53:27 -06:00
/** Legal "actions" for "Mark As.." block when marking Point resources */
export const POINT_OPTIONS: DropDownItem[] = [
2020-02-28 09:35:32 -07:00
{ label: t("Removed"), value: "removed" },
2018-09-11 15:53:27 -06:00
];
/** Legal "actions" in the "Mark As.." block when operating on
* a Plant resource. */
export const PLANT_OPTIONS: DropDownItem[] = [
2018-11-29 12:54:53 -07:00
{ label: t("Planned"), value: "planned" },
{ label: t("Planted"), value: "planted" },
2019-10-02 13:49:28 -06:00
{ label: t("Sprouted"), value: "sprouted" },
2018-11-29 12:54:53 -07:00
{ label: t("Harvested"), value: "harvested" },
2018-09-11 15:53:27 -06:00
];
const value = 0; // Not used in headings.
export const PLANT_HEADER: DropDownItem = {
headingId: "Plant",
2018-11-29 12:54:53 -07:00
label: t("Plants"),
2018-09-11 15:53:27 -06:00
value,
heading: true
};
export const POINT_HEADER: DropDownItem = {
headingId: "GenericPointer",
2018-11-29 12:54:53 -07:00
label: t("Points"),
2018-09-11 15:53:27 -06:00
value,
heading: true
};
export const TOP_HALF = [
2020-02-28 09:35:32 -07:00
{ headingId: "Device", label: t("Device"), value, heading: true },
{ headingId: "Device", label: t("Tool Mount"), value },
2018-09-11 15:53:27 -06:00
];