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

View file

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

View file

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