Skip to content

Commit

Permalink
Install farmbot@8.0.1-rc8
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCarlino committed Jun 24, 2019
1 parent 8c9d97d commit adda534
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions frontend/__test_support__/fake_state/resources.ts
Expand Up @@ -307,6 +307,7 @@ export function fakeWebAppConfig(): TaggedWebAppConfig {
photo_filter_begin: "2018-01-11T20:20:38.362Z",
photo_filter_end: "2018-01-22T15:32:41.970Z",
discard_unsaved: false,
discard_unsaved_sequences: false,
xy_swap: false,
home_button_homing: false,
show_motor_plot: false,
Expand Down
3 changes: 1 addition & 2 deletions frontend/redux/subscribers.ts
Expand Up @@ -4,7 +4,6 @@ import { EnvName } from "./interfaces";
import { all } from "../resources/selectors";
import { getWebAppConfig } from "../resources/getters";
import { TaggedResource, TaggedWebAppConfig } from "farmbot";
import { BooleanConfigKey } from "farmbot/dist/resources/configs/web_app";

export function stopThem() { return "You have unsaved work."; }
export function dontStopThem() { }
Expand All @@ -16,7 +15,7 @@ const shouldStop =
const discardUnsaved = config && config.body.discard_unsaved;
const sequenceResources = allResources.filter(r => r.kind === "Sequence");
const discardUnsavedSequences =
config && config.body["discard_unsaved_sequences" as BooleanConfigKey];
config && config.body["discard_unsaved_sequences"];

/**
* For the unsaved notification to show, a user must:
Expand Down
2 changes: 1 addition & 1 deletion frontend/sequences/sequence_editor_middle_active.tsx
Expand Up @@ -97,7 +97,7 @@ export const SequenceSettingsMenu =
label={t("Open options by default")}
description={Content.EXPAND_STEP_OPTIONS} />
<Setting {...commonProps}
setting={"discard_unsaved_sequences" as BooleanConfigKey}
setting={"discard_unsaved_sequences"}
confirmation={Content.DISCARD_UNSAVED_SEQUENCE_CHANGES_CONFIRM}
label={t("Discard unsaved sequence changes")}
description={Content.DISCARD_UNSAVED_SEQUENCE_CHANGES} />
Expand Down
1 change: 1 addition & 0 deletions frontend/session_keys.ts
Expand Up @@ -33,6 +33,7 @@ export const BooleanSetting: Record<BooleanConfigKey, BooleanConfigKey> = {
confirm_step_deletion: "confirm_step_deletion",
show_pins: "show_pins",
expand_step_options: "expand_step_options",
discard_unsaved_sequences: "discard_unsaved_sequences",

/** App settings */
disable_i18n: "disable_i18n",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -43,7 +43,7 @@
"coveralls": "3.0.4",
"enzyme": "3.10.0",
"enzyme-adapter-react-16": "1.14.0",
"farmbot": "8.0.1-rc7",
"farmbot": "8.0.1-rc8",
"farmbot-toastr": "1.0.3",
"i18next": "17.0.4",
"jest": "24.8.0",
Expand Down

0 comments on commit adda534

Please sign in to comment.