Skip to content

Commit 4bd1af7

Browse files
committed
tidy Reference
Signed-off-by: dartcafe <github@dartcafe.de>
1 parent 4a6e9f5 commit 4bd1af7

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

src/views/Reference.vue

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,7 @@ interface Props {
3232
}
3333
3434
const { richObject } = defineProps<Props>()
35-
// const expiryClass2 = (() => {
36-
// if (!richObject?.poll?.expiry) {
37-
// return ''
38-
// }
39-
// if (DateTime.fromMillis(richObject.poll.expiry * 1000).diffNow('hours').hours < 36) {
40-
// return StatusResults.Warning
41-
// }
42-
// return StatusResults.Success
43-
// })
35+
4436
const expiryClass = richObject?.poll?.expiry
4537
? DateTime.fromMillis(richObject.poll.expiry * 1000).diffNow('hours').hours < 36
4638
? StatusResults.Warning
@@ -80,12 +72,6 @@ const expiryClass = richObject?.poll?.expiry
8072
<NcUserBubble
8173
:user="richObject.poll.ownerId"
8274
:display-name="richObject.poll.ownerDisplayName" />
83-
<span
84-
v-if="richObject.poll.expiry > 0 && !richObject.poll.expired"
85-
class="expiration">
86-
{{ t('polls', 'Ends in') }}
87-
{{ DateTime.fromMillis(richObject.poll.expiry * 1000).toRelative() }}
88-
</span>
8975
</div>
9076
</div>
9177
</template>

0 commit comments

Comments
 (0)