@goweekdays/layer-common 1.1.1 → 1.1.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.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 4a76e4a: Invitation management - fix form component
8
+
3
9
  ## 1.1.1
4
10
 
5
11
  ### Patch Changes
@@ -47,16 +47,20 @@
47
47
  <v-tabs>
48
48
  <v-tab
49
49
  :to="{
50
- name: 'org-organization-invitations-status-status',
51
- params: { status: 'pending', organization },
50
+ name: props.route,
51
+ params: props.org
52
+ ? { status: 'pending', org: props.org }
53
+ : { status: 'active' },
52
54
  }"
53
55
  >
54
56
  Pending
55
57
  </v-tab>
56
58
  <v-tab
57
59
  :to="{
58
- name: 'org-organization-invitations-status-status',
59
- params: { status: 'expired', organization },
60
+ name: props.route,
61
+ params: props.org
62
+ ? { status: 'expired', org: props.org }
63
+ : { status: 'pending' },
60
64
  }"
61
65
  >
62
66
  Expired
@@ -91,6 +95,10 @@
91
95
 
92
96
  <script setup lang="ts">
93
97
  const props = defineProps({
98
+ org: {
99
+ type: String,
100
+ default: "",
101
+ },
94
102
  status: {
95
103
  type: String,
96
104
  default: "active",
@@ -110,6 +118,10 @@ const props = defineProps({
110
118
  params: {},
111
119
  }),
112
120
  },
121
+ route: {
122
+ type: String,
123
+ default: "index",
124
+ },
113
125
  });
114
126
 
115
127
  const organization = (useRoute().params.organization as string) ?? "";
@@ -8,14 +8,6 @@ export default function useLocalAuth() {
8
8
  return;
9
9
  }
10
10
 
11
- // Get access token from cookies
12
- const accessToken = useCookie("accessToken", cookieConfig).value;
13
-
14
- if (!accessToken) {
15
- // Redirect to login page if no access token
16
- navigateTo({ name: "index" });
17
- }
18
-
19
11
  const user = useCookie("user", cookieConfig).value;
20
12
 
21
13
  const { data: getCurrentUserReq, error: getCurrentUserErr } =
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.1.1",
5
+ "version": "1.1.2",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"