Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/AdminSettings.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue
index 9ca13721..c39891a7 100644
--- a/src/components/AdminSettings.vue
+++ b/src/components/AdminSettings.vue
@@ -51,7 +51,7 @@
<em>{{ t('richdocuments', 'Collabora Online requires a seperate server acting as a WOPI-like Client to provide editing capabilities.') }}</em>
</p>
<div v-if="serverMode === 'custom'" class="option-inline">
- <form @submit="updateServer">
+ <form @submit.prevent.stop="updateServer">
<p>
<label for="wopi_url">{{ t('richdocuments', 'URL (and Port) of Collabora Online-server') }}</label><br>
<input id="wopi_url" v-model="settings.wopi_url" type="text"
@@ -231,7 +231,7 @@ export default {
data() {
return {
serverMode: '',
- serverError: SERVER_STATE_OK,
+ serverError: Object.values(OC.getCapabilities()['richdocuments'].collabora).length > 0 ? SERVER_STATE_OK : SERVER_STATE_CONNECTION_ERROR,
demoServers: null,
approvedDemoModal: false,
updating: false,