From 062323c0d5459ffc3575e1fed33bda439ab630ce Mon Sep 17 00:00:00 2001 From: SyoBoN Date: Fri, 26 Jan 2024 17:43:43 +0900 Subject: [PATCH 1/2] Hide the expiry date indication if the poll never expires Signed-off-by: SyoBoN --- src/components/poll/poll.js | 2 +- src/components/poll/poll.vue | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/poll/poll.js b/src/components/poll/poll.js index f6001f56a5..9ce0e29ebd 100644 --- a/src/components/poll/poll.js +++ b/src/components/poll/poll.js @@ -38,7 +38,7 @@ export default { return (this.poll && this.poll.options) || [] }, expiresAt () { - return (this.poll && this.poll.expires_at) || 0 + return (this.poll && this.poll.expires_at) || null }, expired () { return (this.poll && this.poll.expired) || false diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue index b3a74c4932..f7e166650a 100644 --- a/src/components/poll/poll.vue +++ b/src/components/poll/poll.vue @@ -75,13 +75,16 @@
+ +  ·  +
- + Date: Fri, 26 Jan 2024 17:51:29 +0900 Subject: [PATCH 2/2] Add changelog Signed-off-by: SyoBoN --- changelog.d/non-expiring-polls-indication.fix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/non-expiring-polls-indication.fix diff --git a/changelog.d/non-expiring-polls-indication.fix b/changelog.d/non-expiring-polls-indication.fix new file mode 100644 index 0000000000..7979cc131e --- /dev/null +++ b/changelog.d/non-expiring-polls-indication.fix @@ -0,0 +1 @@ +The expiry date indication won't be shown if the poll never expires