Remove isFileUploadEnabled

This commit is contained in:
Pavel Djundik 2019-11-12 12:40:17 +02:00
parent a4490bf1d6
commit 033f565c0e
3 changed files with 2 additions and 7 deletions

View file

@ -13,7 +13,7 @@
@keypress.enter.exact.prevent="onSubmit"
/>
<span
v-if="$store.state.isFileUploadEnabled"
v-if="$store.state.serverConfiguration.fileUpload"
id="upload-tooltip"
class="tooltipped tooltipped-w tooltipped-no-touch"
aria-label="Upload file"
@ -147,7 +147,7 @@ export default {
return false;
});
if (this.$store.state.isFileUploadEnabled) {
if (this.$store.state.serverConfiguration.fileUpload) {
upload.mounted();
}
},

View file

@ -22,7 +22,6 @@ window.addEventListener("beforeinstallprompt", (installPromptEvent) => {
});
socket.once("configuration", function(data) {
store.commit("isFileUploadEnabled", data.fileUpload);
store.commit("serverConfiguration", data);
// 'theme' setting depends on serverConfiguration.themes so

View file

@ -25,7 +25,6 @@ const store = new Vuex.Store({
desktopNotificationState: detectDesktopNotificationState(),
isAutoCompleting: false,
isConnected: false,
isFileUploadEnabled: false,
networks: [],
pushNotificationState: "unsupported",
serverConfiguration: null,
@ -56,9 +55,6 @@ const store = new Vuex.Store({
isConnected(state, payload) {
state.isConnected = payload;
},
isFileUploadEnabled(state, isFileUploadEnabled) {
state.isFileUploadEnabled = isFileUploadEnabled;
},
networks(state, networks) {
state.networks = networks;
},