fixed uploading issue

This commit is contained in:
daan 2019-08-12 12:43:26 +02:00
parent 9374f5bab8
commit ea7d95fd48
2 changed files with 2 additions and 6 deletions

View file

@ -15,7 +15,7 @@
label-idle="Drop file here..."
accepted-file-types="application/x-bittorrent"
data-max-file-size="1MB"
:server="uploaddomain"
server="/upload"
v-model="Files"
/>
</div>
@ -81,8 +81,7 @@ export default {
],
loading: false,
dialog: false,
Files: [],
uploaddomain: this.$store.getters["GET_UPLOAD_DOMAIN"]
Files: []
};
},
methods: {

View file

@ -28,12 +28,9 @@ export default new Vuex.Store({
authenticated: false,
loading: false,
sort_options: { sort: 'name', reverse: false },
serverdomain: process.env.VUE_APP_DOMAIN,
},
getters: {
CONTAINS_TORRENT: (state) => (hash) => state.selected_torrents.includes(hash),
GET_DOMAIN: (state) => state.serverdomain,
GET_UPLOAD_DOMAIN: (state) => `${state.serverdomain}/upload`,
},
mutations: {
REFRESH_TORRENTS: async (state) => {