Client - reload user profile when displaying dashboard
This commit is contained in:
		@@ -73,7 +73,7 @@
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script setup lang="ts">
 | 
			
		||||
  import { ComputedRef, Ref, computed, ref } from 'vue'
 | 
			
		||||
  import { ComputedRef, Ref, computed, onBeforeMount, ref } from 'vue'
 | 
			
		||||
 | 
			
		||||
  import Timeline from '@/components/Dashboard/Timeline.vue'
 | 
			
		||||
  import UserCalendar from '@/components/Dashboard/UserCalendar/index.vue'
 | 
			
		||||
@@ -95,6 +95,8 @@
 | 
			
		||||
  )
 | 
			
		||||
  const isSelected: Ref<string> = ref('calendar')
 | 
			
		||||
 | 
			
		||||
  onBeforeMount(() => store.dispatch(AUTH_USER_STORE.ACTIONS.GET_USER_PROFILE))
 | 
			
		||||
 | 
			
		||||
  function updateDisplayColumn(target: string) {
 | 
			
		||||
    isSelected.value = target
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user