Skip to content
Snippets Groups Projects
Commit 0bf2b372 authored by HJ's avatar HJ :fire:
Browse files

Merge branch '790-unable-to-filter' into 'develop'

Settings: Keep a local version of the mutedWordsString

Closes #790

See merge request !1130
parents 585bb572 c4c5568b
No related branches found
No related tags found
2 merge requests!12172.1.0 into master,!1130Settings: Keep a local version of the mutedWordsString
Pipeline #26822 passed
......@@ -30,7 +30,8 @@ const settings = {
Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'audioTracks'),
backendVersion: instance.backendVersion,
frontendVersion: instance.frontendVersion
frontendVersion: instance.frontendVersion,
muteWordsStringLocal: this.$store.getters.mergedConfig.muteWords.join('\n')
}
},
components: {
......@@ -86,8 +87,11 @@ const settings = {
.reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {}),
// Special cases (need to transform values or perform actions first)
muteWordsString: {
get () { return this.$store.getters.mergedConfig.muteWords.join('\n') },
get () {
return this.muteWordsStringLocal
},
set (value) {
this.muteWordsStringLocal = value
this.$store.dispatch('setOption', {
name: 'muteWords',
value: filter(value.split('\n'), (word) => trim(word).length > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment