Skip to content

Commit

Permalink
Merge pull request #3731 from LibreSign/backport/3728/stable29
Browse files Browse the repository at this point in the history
[stable29] chore: remove unused code
  • Loading branch information
vitormattos authored Sep 18, 2024
2 parents 7eb4298 + 7270340 commit 3751840
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions src/Components/LeftSidebar/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
<template>
<NcAppNavigation v-if="showLeftSidebar">
<template #list>
<NcAppNavigationItem v-if="back_to_signature"
class="back_to_signature"
icon="icon-history"
:name="t('libresign', 'Back to sign')"
@click="goToSign" />

<NcAppNavigationItem v-if="canRequestSign"
id="request-files"
:to="{name: 'requestFiles'}"
Expand All @@ -45,6 +39,14 @@
<FolderIcon :size="20" />
</template>
</NcAppNavigationItem>
<NcAppNavigationItem id="fileslist"
:to="{ name: 'fileslist' }"
:name="t('libresign', 'New files')"
@click="unselectFile">
<template #icon>
<FolderIcon :size="20" />
</template>
</NcAppNavigationItem>
<NcAppNavigationItem id="validation"
:to="{name: 'validation'}"
:name="t('libresign', 'Validate')"
Expand Down Expand Up @@ -109,9 +111,6 @@ export default {
}
},
computed: {
back_to_signature() {
return this.$route.query._back_to_signature
},
showLeftSidebar() {
if (this.$route.name === 'Incomplete'
|| this.$route.name === 'IncompleteExternal'
Expand All @@ -127,21 +126,10 @@ export default {
this.filesStore.selectFile()
},
goToSign() {
const route = this.$router.resolve({ name: 'SignPDF', params: { uuid: this.back_to_signature } })
const route = this.$router.resolve({ name: 'SignPDF' })

window.location = route.href
},
},
}
</script>

<style lang="scss">
.app-libresign {
.app-navigation {
.back_to_signature
.app-navigation-entry__title {
color: var(--color-warning, #eca700);
}
}
}
</style>

0 comments on commit 3751840

Please sign in to comment.