แก้ไขกรแสดงเวลา ปิดกล้องและไฟล์
This commit is contained in:
parent
00397f5e57
commit
aa3bd07488
2 changed files with 7 additions and 9 deletions
|
|
@ -5,14 +5,12 @@ import { useSupportStore } from "@/modules/00_support/store/Main";
|
||||||
|
|
||||||
const store = useSupportStore();
|
const store = useSupportStore();
|
||||||
|
|
||||||
function dateChat(timestamp: string): string {
|
function dateChat(timestamp: string) {
|
||||||
const parsedTimestamp = moment(timestamp);
|
const parsedTimestamp = moment(timestamp);
|
||||||
const diff = moment().diff(parsedTimestamp);
|
const diff = moment().diff(parsedTimestamp);
|
||||||
|
|
||||||
if (diff < 1000) {
|
if (diff < 86400000) {
|
||||||
return "just now";
|
const formattedDate = parsedTimestamp.format("hh:mm:") + " น.";
|
||||||
} else if (diff < 86400000) {
|
|
||||||
const formattedDate = parsedTimestamp.format("HH:MM") + " น.";
|
|
||||||
return formattedDate;
|
return formattedDate;
|
||||||
} else {
|
} else {
|
||||||
const beYear = parsedTimestamp.year() + 543;
|
const beYear = parsedTimestamp.year() + 543;
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ function getOnlineStatus(option: "icon" | "status") {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-2 text-right q-gutter-x-md">
|
<div class="col-2 text-right q-gutter-x-md">
|
||||||
<q-icon class="col" name="mdi-video-outline" size="24px" color="teal" />
|
<!-- <q-icon class="col" name="mdi-video-outline" size="24px" color="teal" /> -->
|
||||||
<q-icon
|
<q-icon
|
||||||
class="col"
|
class="col"
|
||||||
name="mdi-information-outline"
|
name="mdi-information-outline"
|
||||||
|
|
@ -67,8 +67,8 @@ function getOnlineStatus(option: "icon" | "status") {
|
||||||
|
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<div class="row q-py-md q-px-lg justify-between items-center q-gutter-x-lg">
|
<div class="row q-py-md q-px-lg justify-between items-center q-gutter-x-lg">
|
||||||
<div>
|
<!-- <div>
|
||||||
<q-btn flat class="col-1">
|
<q-btn flat disable class="col-1">
|
||||||
<q-icon
|
<q-icon
|
||||||
name="mdi-paperclip"
|
name="mdi-paperclip"
|
||||||
size="20px"
|
size="20px"
|
||||||
|
|
@ -76,7 +76,7 @@ function getOnlineStatus(option: "icon" | "status") {
|
||||||
color="grey"
|
color="grey"
|
||||||
/>
|
/>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<div class="col-grow">
|
<div class="col-grow">
|
||||||
<q-input
|
<q-input
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue