Add editor and migration support.
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
CONF_MEDIA_GALLERY,
|
||||
CONF_MENU_BUTTONS_CAMERA_UI,
|
||||
CONF_OVERRIDES,
|
||||
CONF_VIEW_SCAN_ACTIONS_UNTRIGGER,
|
||||
} from './const';
|
||||
import { arrayify } from './utils/basic';
|
||||
|
||||
@@ -474,4 +475,12 @@ const UPGRADES = [
|
||||
);
|
||||
},
|
||||
upgradePTZElementsToLive(),
|
||||
upgradeMoveToWithOverrides(
|
||||
'view.scan.untrigger_reset',
|
||||
CONF_VIEW_SCAN_ACTIONS_UNTRIGGER,
|
||||
{
|
||||
// Delete the value if it's set to the default.
|
||||
transform: (val) => (val ? 'default' : null),
|
||||
},
|
||||
),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user