แก้ไขกรแสดงเวลา ปิดกล้องและไฟล์
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();
|
||||
|
||||
function dateChat(timestamp: string): string {
|
||||
function dateChat(timestamp: string) {
|
||||
const parsedTimestamp = moment(timestamp);
|
||||
const diff = moment().diff(parsedTimestamp);
|
||||
|
||||
if (diff < 1000) {
|
||||
return "just now";
|
||||
} else if (diff < 86400000) {
|
||||
const formattedDate = parsedTimestamp.format("HH:MM") + " น.";
|
||||
if (diff < 86400000) {
|
||||
const formattedDate = parsedTimestamp.format("hh:mm:") + " น.";
|
||||
return formattedDate;
|
||||
} else {
|
||||
const beYear = parsedTimestamp.year() + 543;
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ function getOnlineStatus(option: "icon" | "status") {
|
|||
</div>
|
||||
|
||||
<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
|
||||
class="col"
|
||||
name="mdi-information-outline"
|
||||
|
|
@ -67,8 +67,8 @@ function getOnlineStatus(option: "icon" | "status") {
|
|||
|
||||
<q-separator />
|
||||
<div class="row q-py-md q-px-lg justify-between items-center q-gutter-x-lg">
|
||||
<div>
|
||||
<q-btn flat class="col-1">
|
||||
<!-- <div>
|
||||
<q-btn flat disable class="col-1">
|
||||
<q-icon
|
||||
name="mdi-paperclip"
|
||||
size="20px"
|
||||
|
|
@ -76,7 +76,7 @@ function getOnlineStatus(option: "icon" | "status") {
|
|||
color="grey"
|
||||
/>
|
||||
</q-btn>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div class="col-grow">
|
||||
<q-input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue