@icvdeveloper/common-module 1.0.1 → 1.0.3
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
package/dist/module.json
CHANGED
|
@@ -156,5 +156,10 @@ const { selectedContent } = storeToRefs(usePresentationsStore());
|
|
|
156
156
|
</figure>
|
|
157
157
|
</div>
|
|
158
158
|
</div>
|
|
159
|
+
<CommonComponentsSessionReporting
|
|
160
|
+
ref="sessionReporting"
|
|
161
|
+
:loggable-id="presentation.id"
|
|
162
|
+
:archived="true"
|
|
163
|
+
/>
|
|
159
164
|
</div>
|
|
160
165
|
</template>
|
|
@@ -13,13 +13,15 @@ let sessionLoopId: any = null;
|
|
|
13
13
|
type Props = {
|
|
14
14
|
loggableType?: string;
|
|
15
15
|
loggableId: number | undefined;
|
|
16
|
+
archived?: boolean;
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
const props = withDefaults(defineProps<Props>(), {
|
|
19
20
|
loggableType: "App\\Presentation",
|
|
21
|
+
archived: false,
|
|
20
22
|
});
|
|
21
23
|
|
|
22
|
-
const { loggableType, loggableId } = toRefs(props);
|
|
24
|
+
const { loggableType, loggableId, archived } = toRefs(props);
|
|
23
25
|
|
|
24
26
|
// methods
|
|
25
27
|
const updateSessionCookie = () => {
|
|
@@ -44,6 +46,7 @@ const updateSession = () => {
|
|
|
44
46
|
body: {
|
|
45
47
|
resource_type: loggableType.value,
|
|
46
48
|
resource_id: loggableId.value,
|
|
49
|
+
archived: archived.value ? 1 : 0,
|
|
47
50
|
},
|
|
48
51
|
};
|
|
49
52
|
|