Skip to content

Commit

Permalink
fix: flip hideWarning value
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Jan 21, 2025
1 parent f2cdc96 commit 1c5412f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/AdminSettings/SignalingServers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@
@update:model-value="debounceUpdateServers" />

<template v-if="!serversProxy.length">
<NcCheckboxRadioSwitch v-model="hideWarningProxy"
<NcCheckboxRadioSwitch v-model="showWarningProxy"
type="switch"
class="additional-top-margin"
:disabled="loading"
@update:model-value="updateHideWarning">
{{ t('spreed', 'Don\'t warn about connectivity issues in calls with more than 2 participants') }}
{{ t('spreed', 'Warn about connectivity issues in calls with more than 2 participants') }}
</NcCheckboxRadioSwitch>
</template>
</section>
Expand Down Expand Up @@ -137,12 +137,13 @@ const secretProxy = computed({
emit('update:secret', value)
}
})
const hideWarningProxy = computed({
/** Opposite value of hideWarning */
const showWarningProxy = computed({
get() {
return props.hideWarning
return !props.hideWarning
},
set(value) {
emit('update:hideWarning', value)
emit('update:hideWarning', !value)
}
})

Expand Down

0 comments on commit 1c5412f

Please sign in to comment.