File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,15 +32,7 @@ interface Props {
3232}
3333
3434const { 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+
4436const 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 >
You can’t perform that action at this time.
0 commit comments