Skip to content

Commit

Permalink
Merge pull request #2439 from nextcloud/fix/noid/trashbin-datetime
Browse files Browse the repository at this point in the history
fix: use `NcDateTime` to show time in trashbin
  • Loading branch information
raimund-schluessler authored Jan 4, 2024
2 parents 4fa068e + 96e07ef commit 270bc40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 38 deletions.
35 changes: 0 additions & 35 deletions src/components/AppNavigation/Moment.vue

This file was deleted.

6 changes: 3 additions & 3 deletions src/components/AppNavigation/Trashbin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
</div>
</div>
<div :key="`${item.url}date`" class="table__body table__body--deletedAt">
<Moment class="timestamp" :timestamp="item.deletedAt" />
<NcDateTime class="timestamp" :timestamp="item.deletedAt" :ignore-seconds="true" />
</div>
<div :key="`${item.url}action`" class="table__body">
<NcButton @click="restore(item)">
Expand Down Expand Up @@ -107,7 +107,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
</template>

<script>
import Moment from './Moment.vue'
import { uidToHexColor } from '../../utils/color.js'
import logger from '../../utils/logger.js'

Expand All @@ -118,6 +117,7 @@ import NcAppNavigationItem from '@nextcloud/vue/dist/Components/NcAppNavigationI
import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcDateTime from '@nextcloud/vue/dist/Components/NcDateTime.js'
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'
Expand All @@ -136,10 +136,10 @@ export default {
NcEmptyContent,
NcLoadingIcon,
NcModal,
Moment,
NcActions,
NcActionButton,
NcButton,
NcDateTime,
DeleteForever,
Undo,
},
Expand Down

0 comments on commit 270bc40

Please sign in to comment.