mirror of
https://github.com/koush/scrypted.git
synced 2026-04-13 03:50:21 +01:00
23 lines
532 B
Vue
23 lines
532 B
Vue
<template>
|
|
<Device v-if="id" :deviceId="id"></Device>
|
|
</template>
|
|
<script>
|
|
import Device from "./Device.vue";
|
|
|
|
export default {
|
|
asyncComputed: {
|
|
id: {
|
|
async get() {
|
|
const device = this.$store.state.scrypted.devices
|
|
.map((id) => this.$scrypted.systemManager.getDeviceById(id))
|
|
.find((device) => {
|
|
return device.pluginId === "@scrypted/core" && device.nativeId === "aggregatecore";
|
|
});
|
|
|
|
return device?.id;
|
|
}
|
|
}
|
|
},
|
|
components: { Device }
|
|
};
|
|
</script> |