Skip to content

Commit

Permalink
chore: remove timeline
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos committed Oct 31, 2024
1 parent 65bd98c commit 842be69
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 182 deletions.
10 changes: 1 addition & 9 deletions src/Components/LeftSidebar/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,9 @@
<FileSignIcon :size="20" />
</template>
</NcAppNavigationItem>
<NcAppNavigationItem id="timeline"
:to="{ name: 'timeline' }"
:name="t('libresign', 'Files')"
@click="unselectFile">
<template #icon>
<FolderIcon :size="20" />
</template>
</NcAppNavigationItem>
<NcAppNavigationItem id="fileslist"
:to="{ name: 'fileslist' }"
:name="t('libresign', 'New files')"
:name="t('libresign', 'Files')"
@click="unselectFile">
<template #icon>
<FolderIcon :size="20" />
Expand Down
5 changes: 0 additions & 5 deletions src/router/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,6 @@ const router = new Router({
component: () => import('../views/Validation.vue'),
props: true,
},
{
path: '/f/timeline/sign',
name: 'timeline',
component: () => import('../views/Timeline/Timeline.vue'),
},
{
path: '/f/filelist/sign',
name: 'fileslist',
Expand Down
18 changes: 0 additions & 18 deletions src/store/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export const useFilesStore = function(...args) {
selectedNodeId: 0,
identifyingSigner: false,
loading: false,
filterActive: 'all',
canRequestSign: loadState('libresign', 'can_request_sign', false),
ordered: [],
paginationNextUrl: '',
Expand Down Expand Up @@ -278,23 +277,6 @@ export const useFilesStore = function(...args) {
filesSorted() {
return this.ordered.map(key => this.files[key])
},
filter(type) {
this.filterActive = type
if (type === 'pending') {
return Object.values(this.files).filter(
(a) => (a.status === 1 || a.status === 2)).sort(
(a, b) => (a.request_date < b.request_date) ? 1 : -1)
}
if (type === 'signed') {
return Object.values(this.files).filter(
(a) => (a.status === 3)).sort(
(a, b) => (a.request_date < b.request_date) ? 1 : -1)
}
if (type === 'all') {
this.filterActive = 'all'
return Object.values(this.files).sort((a, b) => (a.request_date < b.request_date) ? 1 : -1)
}
},
},
})

Expand Down
150 changes: 0 additions & 150 deletions src/views/Timeline/Timeline.vue

This file was deleted.

0 comments on commit 842be69

Please sign in to comment.