@goweekdays/layer-common 1.2.3 → 1.2.4

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.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 73dc3ef: Add require organization page
8
+
3
9
  ## 1.2.3
4
10
 
5
11
  ### Patch Changes
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.2.3",
5
+ "version": "1.2.4",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -0,0 +1,43 @@
1
+ <template>
2
+ <v-row no-gutters class="fill-height" justify="center" align-content="center">
3
+ <v-col cols="12" class="mb-4">
4
+ <v-row justify="center" class="pa-4">
5
+ <span class="text-h5 font-weight-medium"> Organization Required </span>
6
+ </v-row>
7
+ </v-col>
8
+
9
+ <span class="text-subtitle-2">
10
+ You must have an organization to access this page.
11
+ </span>
12
+
13
+ <v-col cols="12" class="mt-6">
14
+ <v-row no-gutters justify="center">
15
+ <v-btn
16
+ size="large"
17
+ class="text-none"
18
+ variant="flat"
19
+ color="black"
20
+ rounded
21
+ @click="createOrg()"
22
+ >
23
+ Create Organization
24
+ </v-btn>
25
+ </v-row>
26
+ </v-col>
27
+ </v-row>
28
+ </template>
29
+
30
+ <script setup lang="ts">
31
+ definePageMeta({
32
+ layout: "plain",
33
+ });
34
+
35
+ function createOrg() {
36
+ const { APP, APP_ORG } = useRuntimeConfig().public;
37
+ if (APP === "organization") {
38
+ navigateTo({ name: "organizations-create" });
39
+ } else {
40
+ navigateTo(`${APP_ORG}/organizations/create`, { external: true });
41
+ }
42
+ }
43
+ </script>