refactor: removed old progressbar

This commit is contained in:
filippofinke 2022-02-15 22:21:44 +01:00
parent 39c28c4d33
commit cff50715a0

View File

@ -1,16 +1,7 @@
<template> <template>
<div> <div>
<div v-if="files" class="files">
<div v-for="file in files" :key="file.id">
<div v-bind:style="{ width: file.progress + '%' }">
{{ file.name + " " + file.progress + "%" }}
</div>
</div>
</div>
<div v-if="progress" class="progress"> <div v-if="progress" class="progress">
<div v-bind:style="{ width: this.progress + '%' }"> <div v-bind:style="{ width: this.progress + '%' }"></div>
{{ this.progress ? this.progress + "%" : "" }}
</div>
</div> </div>
<sidebar></sidebar> <sidebar></sidebar>
<main> <main>
@ -36,7 +27,7 @@ export default {
Shell, Shell,
}, },
computed: { computed: {
...mapGetters(["isLogged", "progress", "files"]), ...mapGetters(["isLogged", "progress"]),
...mapState(["user"]), ...mapState(["user"]),
isExecEnabled: () => enableExec, isExecEnabled: () => enableExec,
}, },
@ -44,8 +35,7 @@ export default {
$route: function () { $route: function () {
this.$store.commit("resetSelected"); this.$store.commit("resetSelected");
this.$store.commit("multiple", false); this.$store.commit("multiple", false);
if (this.$store.state.show !== "success") if (this.$store.state.show !== "success") this.$store.commit("closeHovers");
this.$store.commit("closeHovers");
}, },
}, },
}; };