mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 05:50:22 +00:00
Remove isFileUploadEnabled
This commit is contained in:
parent
a4490bf1d6
commit
033f565c0e
3 changed files with 2 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue