refactored chat handling into chat view component
This commit is contained in:
parent
a58cdd954d
commit
26a2b4fca1
13 changed files with 315 additions and 455 deletions
|
|
@ -5,10 +5,10 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import localeService from 'src/services/locale/locale.service.js'
|
||||
|
||||
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
||||
|
||||
import localeService from 'src/services/locale/locale.service.js'
|
||||
|
||||
export default {
|
||||
name: 'Timeago',
|
||||
props: ['date', 'showTime'],
|
||||
|
|
@ -26,7 +26,7 @@ export default {
|
|||
if (this.showTime) {
|
||||
return this.date.toLocaleTimeString(
|
||||
localeService.internalToBrowserLocale(this.$i18n.locale),
|
||||
{ hour12: this.time12hFormat, hour: 'numeric', minute: 'numeric' }
|
||||
{ hour12: this.time12hFormat, hour: 'numeric', minute: 'numeric' },
|
||||
)
|
||||
} else {
|
||||
return this.date.toLocaleDateString(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue