This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
/
fab.vue
100 lines (98 loc) · 2.13 KB
/
fab.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<template>
<div>
<!-- <img
:src="channel.iconPath"
class="w-100 col-6 d-block mx-auto mt-2 mb-3"
alt="Zoom"
/> -->
<p class="lead text-center">
FAB Subtitler
</p>
<!-- <hr /> -->
<!-- <ol>
<li>
<a
href="https://support.zoom.us/hc/en-us/articles/207279736-closed-captioning#h_4cb4e874-d574-4e40-ab12-7d8fae1f71cc"
target="_blank"
>Enable closed captioning</a
>
in your Zoom account.
</li>
<li>
In a Zoom meeting or webinar that you are hosting, click the Closed
Caption button.
</li>
<li>
<a
href="https://support.zoom.us/hc/en-us/articles/207279736-closed-captioning#h_45f95867-9c71-4acd-888f-5a1475b4cd8e"
target="_blank"
>Choose the "Copy API token" option</a
>
and paste the token here.
</li>
</ol> -->
<div class="card card-body">
<div
v-if="savedChannel && savedChannel.error"
class="alert alert-warning small"
>
<strong class="text-danger">
<fa icon="exclamation-triangle" /> Error:
</strong>
{{ savedChannel.error }}
</div>
<label for="port" class="font-weight-bold">TCP Port</label>
<input
id="port"
name="port"
v-model="port"
autofocus
class="form-control"
type="url"
placeholder="TCP Port"
/>
</div>
</div>
</template>
<script>
export default {
props: {
channel: {
required: true,
type: Object,
},
savedChannel: {
required: false,
type: Object,
},
},
mounted() {
this.port = this.savedChannel?.parameters?.port || this.port;
},
data() {
return {
port: null,
};
},
methods: {
updateParameters() {
this.$emit('parametersUpdated', {
port: this.port,
});
if (this.port) {
this.$emit('formValid');
} else {
this.$emit('formInvalid');
}
},
},
watch: {
port: {
immediate: true,
handler() {
this.updateParameters();
},
},
},
};
</script>