@live-change/access-control-frontend 0.8.114 → 0.8.116
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.
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Invited you to
|
|
7
7
|
<ObjectIdentification :objectType="notification.objectType" :object="notification.object" />
|
|
8
8
|
</div>
|
|
9
|
-
<div class="mt-2 ml-4" v-if="!notification.state">
|
|
9
|
+
<div class="mt-2 ml-4" v-if="!notification.state && invitation">
|
|
10
10
|
<Button label="Accept" icon="pi pi-check" class="p-button-sm mr-2" @click="acceptInvitation" />
|
|
11
11
|
<Button label="Ignore" icon="pi pi-times" class="p-button-sm" @click="deleteNotification" />
|
|
12
12
|
</div>
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
<script setup>
|
|
18
18
|
|
|
19
|
+
import { computed, defineProps } from "vue"
|
|
20
|
+
|
|
19
21
|
import {
|
|
20
22
|
SimpleNotification, UserIdentification, ObjectIdentification as DefaultObjectIdentification
|
|
21
23
|
} from "@live-change/user-frontend"
|
|
@@ -43,10 +45,21 @@
|
|
|
43
45
|
import { inject } from "vue"
|
|
44
46
|
const workingZone = inject('workingZone')
|
|
45
47
|
|
|
46
|
-
import {
|
|
48
|
+
import { useActions, usePath, live } from "@live-change/vue3-ssr"
|
|
49
|
+
const actions = useActions()
|
|
50
|
+
const path = usePath()
|
|
51
|
+
|
|
52
|
+
const notificationApi = actions.notification
|
|
53
|
+
const accessControlApi = actions.accessControl
|
|
54
|
+
|
|
55
|
+
const invitationPath = computed(() => path.accessControl.myAccessInvitation({
|
|
56
|
+
objectType: notification.objectType,
|
|
57
|
+
object: notification.object
|
|
58
|
+
}))
|
|
47
59
|
|
|
48
|
-
const
|
|
49
|
-
|
|
60
|
+
const [invitation] = await Promise.all([
|
|
61
|
+
live(invitationPath)
|
|
62
|
+
])
|
|
50
63
|
|
|
51
64
|
function deleteNotification() {
|
|
52
65
|
workingZone.addPromise('deleteNotification', (async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/access-control-frontend",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.116",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
},
|
|
22
22
|
"type": "module",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/access-control-service": "^0.8.
|
|
25
|
-
"@live-change/cli": "^0.8.
|
|
26
|
-
"@live-change/dao": "^0.8.
|
|
27
|
-
"@live-change/dao-vue3": "^0.8.
|
|
28
|
-
"@live-change/dao-websocket": "^0.8.
|
|
29
|
-
"@live-change/db-admin": "^0.8.
|
|
30
|
-
"@live-change/framework": "^0.8.
|
|
31
|
-
"@live-change/frontend-base": "^0.8.
|
|
32
|
-
"@live-change/password-authentication-service": "^0.8.
|
|
33
|
-
"@live-change/secret-code-service": "^0.8.
|
|
34
|
-
"@live-change/secret-link-service": "^0.8.
|
|
35
|
-
"@live-change/session-service": "^0.8.
|
|
36
|
-
"@live-change/user-frontend": "^0.8.
|
|
37
|
-
"@live-change/user-service": "^0.8.
|
|
38
|
-
"@live-change/vue3-components": "^0.8.
|
|
39
|
-
"@live-change/vue3-ssr": "^0.8.
|
|
24
|
+
"@live-change/access-control-service": "^0.8.116",
|
|
25
|
+
"@live-change/cli": "^0.8.116",
|
|
26
|
+
"@live-change/dao": "^0.8.116",
|
|
27
|
+
"@live-change/dao-vue3": "^0.8.116",
|
|
28
|
+
"@live-change/dao-websocket": "^0.8.116",
|
|
29
|
+
"@live-change/db-admin": "^0.8.116",
|
|
30
|
+
"@live-change/framework": "^0.8.116",
|
|
31
|
+
"@live-change/frontend-base": "^0.8.116",
|
|
32
|
+
"@live-change/password-authentication-service": "^0.8.116",
|
|
33
|
+
"@live-change/secret-code-service": "^0.8.116",
|
|
34
|
+
"@live-change/secret-link-service": "^0.8.116",
|
|
35
|
+
"@live-change/session-service": "^0.8.116",
|
|
36
|
+
"@live-change/user-frontend": "^0.8.116",
|
|
37
|
+
"@live-change/user-service": "^0.8.116",
|
|
38
|
+
"@live-change/vue3-components": "^0.8.116",
|
|
39
|
+
"@live-change/vue3-ssr": "^0.8.116",
|
|
40
40
|
"@vueuse/core": "^10.11.0",
|
|
41
41
|
"codeceptjs-assert": "^0.0.5",
|
|
42
42
|
"compression": "^1.7.4",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vue3-scroll-border": "0.1.6"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@live-change/codeceptjs-helper": "^0.8.
|
|
56
|
+
"@live-change/codeceptjs-helper": "^0.8.116",
|
|
57
57
|
"codeceptjs": "^3.6.5",
|
|
58
58
|
"generate-password": "1.7.1",
|
|
59
59
|
"playwright": "^1.41.2",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"author": "Michał Łaszczewski <michal@laszczewski.pl>",
|
|
65
65
|
"license": "BSD-3-Clause",
|
|
66
66
|
"description": "",
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "32131af3707ec744c9d314035676d09512483799"
|
|
68
68
|
}
|