Client - reload user profile when displaying dashboard

This commit is contained in:
Sam 2022-09-19 09:23:05 +02:00
parent eb1a4657ee
commit 6982f5320a

View File

@ -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
}