Browse Source
fix(AdminSettings): Require HPB for recording server configuration
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
pull/12771/head
Marcel Müller
1 year ago
committed by
Maksim Sukharev
No known key found for this signature in database
GPG Key ID: 6349D071889BD1D5
1 changed files with
67 additions and
55 deletions
-
src/components/AdminSettings/RecordingServers.vue
|
|
|
@ -10,6 +10,11 @@ |
|
|
|
{{ t('spreed', 'Recording backend') }} |
|
|
|
</h2> |
|
|
|
|
|
|
|
<NcNoteCard v-if="!showForm" type="warning"> |
|
|
|
{{ t('spreed', 'Recording backend configuration is only possible with a high-performance backend.') }} |
|
|
|
</NcNoteCard> |
|
|
|
|
|
|
|
<template v-else> |
|
|
|
<NcNoteCard v-if="showUploadLimitWarning" type="warning"> |
|
|
|
{{ uploadLimitWarning }} |
|
|
|
</NcNoteCard> |
|
|
|
@ -69,6 +74,7 @@ |
|
|
|
</p> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</section> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -127,6 +133,7 @@ export default { |
|
|
|
uploadLimit: 0, |
|
|
|
loading: false, |
|
|
|
saved: false, |
|
|
|
showForm: true, |
|
|
|
recordingConsentSelected: loadState('spreed', 'recording_consent').toString(), |
|
|
|
debounceUpdateServers: () => {}, |
|
|
|
} |
|
|
|
@ -151,6 +158,11 @@ export default { |
|
|
|
this.uploadLimit = parseInt(state.uploadLimit, 10) |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
const signaling = loadState('spreed', 'signaling_servers') |
|
|
|
this.showForm = signaling.servers.length > 0 |
|
|
|
}, |
|
|
|
|
|
|
|
beforeDestroy() { |
|
|
|
this.debounceUpdateServers.clear?.() |
|
|
|
}, |
|
|
|
|