add xy_swap webAppConfig
parent
b1f35e70bf
commit
b315c946b9
|
@ -0,0 +1,8 @@
|
|||
class AddXySwapToWebAppConfigs < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
add_column :web_app_configs,
|
||||
:xy_swap,
|
||||
:boolean,
|
||||
default: false
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20180412191221) do
|
||||
ActiveRecord::Schema.define(version: 20180412224141) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -468,6 +468,7 @@ ActiveRecord::Schema.define(version: 20180412191221) do
|
|||
t.string "photo_filter_begin"
|
||||
t.string "photo_filter_end"
|
||||
t.boolean "discard_unsaved", default: false
|
||||
t.boolean "xy_swap", default: false
|
||||
t.index ["device_id"], name: "index_web_app_configs_on_device_id"
|
||||
end
|
||||
|
||||
|
|
|
@ -210,7 +210,8 @@ export function fakeWebAppConfig(): TaggedWebAppConfig {
|
|||
enable_browser_speak: false,
|
||||
photo_filter_begin: "2018-01-11T20:20:38.362Z",
|
||||
photo_filter_end: "2018-01-22T15:32:41.970Z",
|
||||
discard_unsaved: false
|
||||
discard_unsaved: false,
|
||||
xy_swap: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -44,6 +44,7 @@ export interface WebAppConfig {
|
|||
photo_filter_begin: string;
|
||||
photo_filter_end: string;
|
||||
discard_unsaved: boolean;
|
||||
xy_swap: boolean;
|
||||
}
|
||||
|
||||
export type NumberConfigKey = "id"
|
||||
|
@ -85,4 +86,5 @@ export type BooleanConfigKey = "confirm_step_deletion"
|
|||
|"show_first_party_farmware"
|
||||
|"enable_browser_speak"
|
||||
|"show_images"
|
||||
|"discard_unsaved";
|
||||
|"discard_unsaved"
|
||||
|"xy_swap";
|
||||
|
|
|
@ -12,6 +12,7 @@ export const BooleanSetting: Record<BooleanConfigKey, BooleanConfigKey> = {
|
|||
show_spread: "show_spread",
|
||||
show_farmbot: "show_farmbot",
|
||||
show_images: "show_images",
|
||||
xy_swap: "xy_swap",
|
||||
|
||||
/** "Labs" feature names. (App preferences) */
|
||||
stub_config: "stub_config",
|
||||
|
|
Loading…
Reference in New Issue