allow extensions to be only for one browser.

This commit is contained in:
Miroslav Šedivý
2022-08-04 22:25:30 +02:00
parent e23f4ff89f
commit 8146dd14cb
+4 -5
View File
@@ -551,14 +551,13 @@ export default class RoomsCreate extends Vue {
const config = this.browserPolicyConfig
if (!config) return []
return this.$store.state.browserPolicyExtensions.map(({ text, value }: {
return this.$store.state.browserPolicyExtensions.map(({ text, value: values }: {
text: string;
value: Record<BrowserPolicyTypeEnum, BrowserPolicyExtension>;
}) => {
return {
text,
value: value[config.type as BrowserPolicyTypeEnum],
}
const value = values[config.type as BrowserPolicyTypeEnum]
if (!value) return undefined
return { text, value }
})
}