Skip to content

Commit 5a76c60

Browse files
committed
wip
1 parent 27e9cb2 commit 5a76c60

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

meteor/server/migration/X_X_X.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export const addSteps = addMigrationSteps(CURRENT_SYSTEM_VERSION, [
212212
},
213213
migrate: async () => {
214214
const studios = await Studios.findFetchAsync({
215-
'peripheralDeviceSettings.deviceSettings.defaults': { $exists: true },
215+
'peripheralDeviceSettings.deviceSettings.defaults': { $exists: false },
216216
})
217217

218218
for (const studio of studios) {

packages/corelib/src/dataModel/Studio.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,6 @@ export interface StudioPlayoutDevice {
195195
}
196196

197197
export interface StudioDeviceSettings {
198-
// /**
199-
// * The id of the gateway this is assigned to
200-
// * Future: This may be replaced with some other grouping or way of assigning devices
201-
// */
202-
// peripheralDeviceId: PeripheralDeviceId | undefined
203-
204198
/**
205199
* User friendly name for the device
206200
*/

packages/webui/src/client/ui/Settings/Studio/Devices/ParentDevices.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -400,13 +400,6 @@ function ParentDeviceEditRow({
400400
<tr className="expando-details hl" key={item.id + '-details'}>
401401
<td colSpan={99}>
402402
<div className="properties-grid">
403-
<AssignPeripheralDeviceConfigId
404-
studioId={studioId}
405-
configId={item.id}
406-
value={peripheralDevice?._id}
407-
peripheralDeviceOptions={peripheralDeviceOptions}
408-
/>
409-
410403
<LabelAndOverrides
411404
label={t('Name')}
412405
item={item}
@@ -424,6 +417,13 @@ function ParentDeviceEditRow({
424417
)}
425418
</LabelAndOverrides>
426419

420+
<AssignPeripheralDeviceConfigId
421+
studioId={studioId}
422+
configId={item.id}
423+
value={peripheralDevice?._id}
424+
peripheralDeviceOptions={peripheralDeviceOptions}
425+
/>
426+
427427
{!peripheralDevice && <p>{t('A device must be assigned to the config to edit the settings')}</p>}
428428

429429
{peripheralDevice && (

0 commit comments

Comments
 (0)