mirror of
https://github.com/nextcloud/server.git
synced 2026-07-11 18:47:17 -04:00
fix(component): changed moment to date object for Nc Component using Node.mtime returned date object
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
This commit is contained in:
parent
3b48af2122
commit
59e75d73be
1 changed files with 2 additions and 15 deletions
|
|
@ -20,7 +20,7 @@
|
|||
-
|
||||
-->
|
||||
|
||||
<template>
|
||||
<template>
|
||||
<tr :class="{'files-list__row--dragover': dragover, 'files-list__row--loading': isLoading}"
|
||||
data-cy-files-list-row
|
||||
:data-cy-files-list-row-fileid="fileid"
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
class="files-list__row-mtime"
|
||||
data-cy-files-list-row-mtime
|
||||
@click="openDetailsIfAvailable">
|
||||
<NcDateTime :timestamp="mDateTime"/>
|
||||
<NcDateTime :timestamp="this.source.mtime" :ignore-seconds="true" />
|
||||
</td>
|
||||
|
||||
<!-- View columns -->
|
||||
|
|
@ -257,19 +257,6 @@ export default Vue.extend({
|
|||
color: `color-mix(in srgb, var(--color-main-text) ${ratio}%, var(--color-text-maxcontrast))`,
|
||||
}
|
||||
},
|
||||
|
||||
mtime() {
|
||||
if (this.source.mtime) {
|
||||
return moment(this.source.mtime).fromNow()
|
||||
}
|
||||
return t('files_trashbin', 'A long time ago')
|
||||
},
|
||||
mDateTime() {
|
||||
if (this.source.mtime) {
|
||||
return moment(this.source.mtime)
|
||||
}
|
||||
return t('files_trashbin', 'A long time ago')
|
||||
},
|
||||
mtimeOpacity() {
|
||||
const maxOpacityTime = 31 * 24 * 60 * 60 * 1000 // 31 days
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue