Skip to content

Commit 284625b

Browse files
committed
tagsToHide renamed to prefixesToHide..
1 parent 80aabb4 commit 284625b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/components/panel-list.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const PANELS_INFO = [
6565
perRow: 4,
6666
onlyCurrent: false,
6767
hideByTag: false,
68-
tagsToHide: '~~'
68+
prefixesToHide: '~~'
6969
}
7070
}
7171
},

src/components/panels/scenes.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@
6666
<div class="w-1/2 px-2">
6767
<div class="field">
6868
<label
69-
:for="`settings-${id}-tags-to-hide`"
69+
:for="`settings-${id}-prefixes-to-hide`"
7070
class="label"
71-
>Tags to hide (sep: '; ')</label>
71+
>Prefixes to hide (sep: '; ')</label>
7272
<input
73-
:id="`settings-${id}-tags-to-hide`"
74-
v-model="tagsToHide"
73+
:id="`settings-${id}-prefixes-to-hide`"
74+
v-model="prefixesToHide"
7575
class="input"
7676
type="text"
7777
>
@@ -186,12 +186,12 @@ export default {
186186
this.setSetting('hideByTag', value)
187187
}
188188
},
189-
tagsToHide: {
189+
prefixesToHide: {
190190
get() {
191-
return this.settings.tagsToHide
191+
return this.settings.prefixesToHide
192192
},
193193
set(value) {
194-
this.setSetting('tagsToHide', value)
194+
this.setSetting('prefixesToHide', value)
195195
}
196196
},
197197
...mapState('obs', {
@@ -203,10 +203,10 @@ export default {
203203
filteredScenes() {
204204
let scenes = [...this.scenes] // No need to clone since don't work with inner content
205205
206-
if (this.hideByTag && this.tagsToHide) {
207-
const tagsToHideArray = this.tagsToHide.split('; ')
208-
for (const tag of tagsToHideArray) {
209-
scenes = scenes.filter(scene => !scene.name.startsWith(tag))
206+
if (this.hideByTag && this.prefixesToHide) {
207+
const prefixesToHideArray = this.prefixesToHide.split('; ')
208+
for (const prefix of prefixesToHideArray) {
209+
scenes = scenes.filter(scene => !scene.name.startsWith(prefix))
210210
}
211211
}
212212

0 commit comments

Comments
 (0)