Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
chore(revert): undisplay urgency in details
Browse files Browse the repository at this point in the history
This reverts commit 15ed53f.
  • Loading branch information
lemredd committed Dec 10, 2022
1 parent cf02d13 commit cca50b4
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions components/consultation/chat_window.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<li>Ticket: {{ consultationID }}</li>
<li>Status: {{ consultationStatus }}</li>
<li class="scheduled-at">
Scheduled at: {{ readableScheduledAt() }}
Scheduled at: {{ readableScheduledAt }}
</li>

<li>
Expand Down Expand Up @@ -200,7 +200,6 @@ const {
willSoonStart,
willStart,
isOngoing,
isUrgent,
isAutoTerminated,
isCanceled,
isDone
Expand Down Expand Up @@ -369,16 +368,7 @@ function startConsultation(forceStart: boolean) {
watchConsultation(consultation, registerListeners)
function readableScheduledAt() {
let formattedReadableTime = formatToReadableTime(consultation.value.scheduledStartAt)
if (isUrgent.value) {
const [ dayAndDate ] = formattedReadableTime.split(" at ")
formattedReadableTime = `${dayAndDate} (URGENT)`
}
return formattedReadableTime
}
const readableScheduledAt = formatToReadableTime(consultation.value.scheduledStartAt)
const linkToPrintableForm = computed<string>(() => specializePath(CONSULTATION_FORM_PRINT, {
"id": consultationID.value
Expand Down

0 comments on commit cca50b4

Please sign in to comment.