Device monitoring/v2

This commit is contained in:
Luca Haid
2025-09-01 11:24:32 +00:00
parent 9d340a49c2
commit 73fca90fd9
6 changed files with 367 additions and 43 deletions
@@ -0,0 +1,14 @@
Vue.component('tt-switch', {
template: `
<label class="tt-switch">
<input type="checkbox" :checked="value" @change="$emit('input', $event.target.checked)" :disabled="loading">
<span class="slider round">
<span v-if="loading" class="spinner-wrapper"><span class="spinner"></span></span>
</span>
</label>
`,
props: {
value: { type: Boolean, default: false },
loading: { type: Boolean, default: false }
}
});