From c0946457d311eb1ced63f7dcbcf4bc3f0e33c55a Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期三, 19 一月 2022 16:43:01 +0800
Subject: [PATCH] fixed: BackActionBar - 預約單結案後顯示的 lable 應為'結案明細'

---
 PAMapp/components/BackActionBar.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/PAMapp/components/BackActionBar.vue b/PAMapp/components/BackActionBar.vue
index 0f628c3..ab32947 100644
--- a/PAMapp/components/BackActionBar.vue
+++ b/PAMapp/components/BackActionBar.vue
@@ -14,7 +14,8 @@
 import * as _ from 'lodash';
 import { Role } from '~/shared/models/enum/Role';
 
-const roleStorage = namespace('localStorage');
+const appointmentStore = namespace('appointment.store');
+const roleStorage      = namespace('localStorage');
 
 @Component
 export default class UiCarousel extends Vue {
@@ -22,11 +23,16 @@
   @roleStorage.Getter
   currentRole!:string;
 
+  @appointmentStore.Getter
+  isCloseAppointment!: boolean;
+
   //////////////////////////////////////////////////////////////////////
 
   goBack(): void {
     const pathName = this.$route.name;
-    pathName?.includes('myConsultantList') ? this.$router.push('/') : this.$router.go(-1);
+    pathName?.includes('myConsultantList')
+      ? this.$router.push('/')
+      : this.$router.go(-1);
   }
 
   get label(): string {
@@ -78,7 +84,9 @@
           featureLabel = 'F&Q 撣貉����';
           break;
         case 'appointment':
-          const appointmentFeatureLabel = this.$route.name.includes('close') ? '蝯��' : '������';
+          const appointmentFeatureLabel = this.$route.name.includes('close')
+                                                            ? '蝯��'
+                                                            : this.isCloseAppointment ? '蝯����' : '������';
           const inInterview = this.$route.name.includes('interview');
           const addNewInterview = this.$route.name.includes('new');
           if (inInterview) {

--
Gitblit v1.8.0