@goweekdays/layer-common 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @goweekdays/layer-common
2
2
 
3
+ ## 1.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - c6565a1: Make handleSignin async and await refreshMember() so member data is refreshed before navigating. This ensures navigation logic runs after the latest member state is loaded, preventing potential race conditions.
8
+
3
9
  ## 1.6.1
4
10
 
5
11
  ### Patch Changes
@@ -53,6 +53,7 @@
53
53
  class="text-none"
54
54
  @click="emits('confirm')"
55
55
  :disabled="localProps.disabled"
56
+ :loading="localProps.loading"
56
57
  >
57
58
  {{ localProps.action }}
58
59
  </v-btn>
@@ -72,6 +73,10 @@ const localProps = defineProps({
72
73
  type: Boolean,
73
74
  default: false,
74
75
  },
76
+ loading: {
77
+ type: Boolean,
78
+ default: false,
79
+ },
75
80
  action: {
76
81
  type: String,
77
82
  default: "Submit",
package/nuxt.config.ts CHANGED
@@ -85,6 +85,7 @@ export default defineNuxtConfig({
85
85
  proxy: `${process.env.S3_BUCKET_ENDPOINT}/**`,
86
86
  },
87
87
  "/api/job/posts/**": { proxy: `${process.env.API_CORE}/api/job/posts/**` },
88
+ "/api/finance/**": { proxy: `${process.env.API_CORE}/api/finance/**` },
88
89
  },
89
90
 
90
91
  vite: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@goweekdays/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "1.6.1",
5
+ "version": "1.6.2",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"
package/pages/index.vue CHANGED
@@ -103,8 +103,8 @@ const { data: member, refresh: refreshMember } = await useLazyAsyncData(
103
103
  { immediate: isPartnerApp.value }
104
104
  );
105
105
 
106
- function handleSignin() {
107
- refreshMember();
106
+ async function handleSignin() {
107
+ await refreshMember();
108
108
  if (APP === "main") {
109
109
  navigateTo({ name: APP_MAIN_LANDING_PAGE });
110
110
  } else if (APP === "admin") {