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

46 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";
import { PLANT_STAGE_LIST } from "../../../farm_designer/plants/edit_plant_status";
2019-04-02 13:59:37 -06:00
export const MOUNTED_TO = () => t("Mounted to:");
2018-09-11 15:53:27 -06: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 = PLANT_STAGE_LIST;
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 WEED_HEADER: DropDownItem = {
headingId: "Weed",
label: t("Weeds"),
value,
heading: true
};
2018-09-11 15:53:27 -06:00
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
];