@factoringplus/pl-components-pack-v3 0.5.2-pre-7 → 0.5.2-pre-9
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCurrentScope, onScopeDispose, unref, ref, watch, isRef, customRef, toRefs as toRefs$1, getCurrentInstance, onMounted, nextTick, computed as computed$1, shallowRef, watchEffect, readonly, reactive, openBlock, createElementBlock, createElementVNode, warn, isVNode, provide, inject, onBeforeUnmount, toRef, onUnmounted, onBeforeMount, defineComponent, mergeProps, renderSlot, useAttrs as useAttrs$1, useSlots, withDirectives, createCommentVNode, Fragment, normalizeClass, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, normalizeStyle, vShow, Transition, onUpdated, cloneVNode, Text, Comment, Teleport, onDeactivated, renderList, createTextVNode, toRaw as toRaw$1, vModelCheckbox, withKeys, h as h$2, createSlots, triggerRef, resolveComponent, resolveDirective, vModelText, TransitionGroup, createApp, shallowReactive, render, normalizeProps, guardReactiveProps, createStaticVNode, onBeforeUpdate } from "vue";
|
|
2
2
|
import moment from "moment";
|
|
3
|
-
import { defineStore, createPinia } from "pinia";
|
|
3
|
+
import { defineStore, storeToRefs, createPinia } from "pinia";
|
|
4
4
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
5
5
|
var freeGlobal$1 = freeGlobal;
|
|
6
6
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
@@ -47454,6 +47454,7 @@ const useSelectedChannelStore = defineStore("selectedChannel", {
|
|
|
47454
47454
|
},
|
|
47455
47455
|
async getChatMessagesByChannelId(count2) {
|
|
47456
47456
|
try {
|
|
47457
|
+
console.log("this.channelId", this.channelId);
|
|
47457
47458
|
const messages2 = await apiChat.getChatMessagesByChannelId(this.api, this.baseUrl, this.channelId, this.afterMessagesLoaded, count2);
|
|
47458
47459
|
console.log("messages getChatMessagesByChannelId", messages2);
|
|
47459
47460
|
if (messages2.length < 10) {
|
|
@@ -47504,6 +47505,7 @@ const useSelectedChannelStore = defineStore("selectedChannel", {
|
|
|
47504
47505
|
},
|
|
47505
47506
|
async getSelectedChannelInfo(selectedChannel, callback) {
|
|
47506
47507
|
try {
|
|
47508
|
+
console.log("selectedChannel", selectedChannel);
|
|
47507
47509
|
this.channelId = selectedChannel.channelId;
|
|
47508
47510
|
this.participant = selectedChannel.participant;
|
|
47509
47511
|
await this.getChatMessagesByChannelId(10);
|
|
@@ -50622,7 +50624,8 @@ const _sfc_main = {
|
|
|
50622
50624
|
channelsStore.setIsHubsConnected(false);
|
|
50623
50625
|
}
|
|
50624
50626
|
};
|
|
50625
|
-
|
|
50627
|
+
const { channelCategory } = storeToRefs(channelsStore);
|
|
50628
|
+
watch(channelCategory, async () => {
|
|
50626
50629
|
await getChannelsInfo();
|
|
50627
50630
|
});
|
|
50628
50631
|
chatManagerStart();
|