Remove isFileUploadEnabled
This commit is contained in:
parent
a4490bf1d6
commit
033f565c0e
@ -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();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user