From 7b32067c8cca81bec97d8506baeaa537c69bcf2b Mon Sep 17 00:00:00 2001 From: greta Date: Mon, 31 May 2021 22:08:13 +0200 Subject: [PATCH] Add a footer for trash bin Signed-off-by: greta --- package-lock.json | 2 +- .../AppNavigation/CalendarList/Trashbin.vue | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 637460c1c..bbe158d28 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5930,7 +5930,7 @@ "dev": true }, "cdav-library": { - "version": "git+https://github.com/nextcloud/cdav-library.git#7fdc09ccc4917635c5189a878be9a899ee81f799", + "version": "git+https://github.com/nextcloud/cdav-library.git#00e0479f545cd9d9fc445e70596ec154c106d3c7", "from": "git+https://github.com/nextcloud/cdav-library.git", "requires": { "core-js": "^3.13.0", diff --git a/src/components/AppNavigation/CalendarList/Trashbin.vue b/src/components/AppNavigation/CalendarList/Trashbin.vue index 7e052867c..462a6b424 100644 --- a/src/components/AppNavigation/CalendarList/Trashbin.vue +++ b/src/components/AppNavigation/CalendarList/Trashbin.vue @@ -50,6 +50,9 @@ + @@ -115,6 +118,11 @@ export default { return formattedCalendars.concat(formattedCalendarObjects) }, + retentionDuration() { + return Math.ceil( + this.trashBin._props['{http://nextcloud.com/ns}trash-bin-retention-duration'] / (60 * 60 * 24) + ) + }, }, methods: { async onShow() { @@ -177,4 +185,10 @@ th { .deletedAt { text-align: right; } +.footer { + color: var(--color-text-lighter); + text-align: center; + font-size: small; + margin-top: 16px; +}