@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 +6 -0
- package/package.json +1 -1
- package/pages/require-organization.vue +43 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -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>
|