diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-04-24 19:59:59 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-05-11 13:27:20 +0300 |
commit | ed1d8aa889b9455c785eee07c6134170daf71d2d (patch) | |
tree | 8302da2a400badf52180e220c7c9631eb774090d /src | |
parent | 2b6b93787e7194e75f8713096569696c6faa8601 (diff) |
Properly check for the server status on first load
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/AdminSettings.vue | 4 |
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, |