@factoringplus/pl-components-pack-v3 0.4.96-pre-5 → 0.4.96-pre-7
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.
|
@@ -44361,6 +44361,7 @@ const useChannelsStore = defineStore("channels", {
|
|
|
44361
44361
|
isOpenChannel: false,
|
|
44362
44362
|
isFilesList: false,
|
|
44363
44363
|
isClientInfo: false,
|
|
44364
|
+
isHubsConnected: false,
|
|
44364
44365
|
notifications: {
|
|
44365
44366
|
messagesRead: null,
|
|
44366
44367
|
messageAdded: null,
|
|
@@ -44423,6 +44424,9 @@ const useChannelsStore = defineStore("channels", {
|
|
|
44423
44424
|
setIsClientInfo(value) {
|
|
44424
44425
|
this.isClientInfo = value;
|
|
44425
44426
|
},
|
|
44427
|
+
setIsHubsConnected(value) {
|
|
44428
|
+
this.isHubsConnected = value;
|
|
44429
|
+
},
|
|
44426
44430
|
toggleChannelCategory(category) {
|
|
44427
44431
|
this.channelCategory = category;
|
|
44428
44432
|
},
|
|
@@ -44498,13 +44502,14 @@ const _sfc_main$5 = {
|
|
|
44498
44502
|
setup(__props, { emit: emit2 }) {
|
|
44499
44503
|
const props = __props;
|
|
44500
44504
|
const channelsStore = useChannelsStore();
|
|
44505
|
+
const groupsStore = useGroupsStore();
|
|
44501
44506
|
const getChannelsInfo = async () => {
|
|
44502
44507
|
channelsStore.setIsLoadingChannels(true);
|
|
44503
44508
|
try {
|
|
44504
44509
|
await Promise.all([
|
|
44505
44510
|
await channelsStore.getChannels(),
|
|
44506
44511
|
await channelsStore.getUnreadChannels(),
|
|
44507
|
-
await
|
|
44512
|
+
await groupsStore.getGroups()
|
|
44508
44513
|
]);
|
|
44509
44514
|
} catch (error2) {
|
|
44510
44515
|
console.log("error");
|
|
@@ -44521,8 +44526,9 @@ const _sfc_main$5 = {
|
|
|
44521
44526
|
}
|
|
44522
44527
|
};
|
|
44523
44528
|
return (_ctx, _cache) => {
|
|
44529
|
+
const _directive_loading = vLoading;
|
|
44524
44530
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
44525
|
-
|
|
44531
|
+
withDirectives((openBlock(), createBlock(_sfc_main$6, {
|
|
44526
44532
|
type: "info",
|
|
44527
44533
|
width: "171",
|
|
44528
44534
|
onClick: togglePopup
|
|
@@ -44531,7 +44537,9 @@ const _sfc_main$5 = {
|
|
|
44531
44537
|
createTextVNode(toDisplayString(__props.btnText), 1)
|
|
44532
44538
|
]),
|
|
44533
44539
|
_: 1
|
|
44534
|
-
}),
|
|
44540
|
+
})), [
|
|
44541
|
+
[_directive_loading, unref(channelsStore).isHubsConnected]
|
|
44542
|
+
]),
|
|
44535
44543
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
44536
44544
|
__props.modelValue ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
44537
44545
|
createElementVNode("div", _hoisted_2$4, [
|
|
@@ -45208,7 +45216,6 @@ const _sfc_main = {
|
|
|
45208
45216
|
const configStore = useConfigStore();
|
|
45209
45217
|
const groupsStore = useGroupsStore();
|
|
45210
45218
|
const channelsStore = useChannelsStore();
|
|
45211
|
-
const isHubsConnected = ref(true);
|
|
45212
45219
|
const isOpen = ref(false);
|
|
45213
45220
|
const togglePopup = () => {
|
|
45214
45221
|
isOpen.value = !isOpen.value;
|
|
@@ -45276,6 +45283,7 @@ const _sfc_main = {
|
|
|
45276
45283
|
};
|
|
45277
45284
|
const chatManagerStart = async () => {
|
|
45278
45285
|
try {
|
|
45286
|
+
channelsStore.setIsHubsConnected(true);
|
|
45279
45287
|
await Promise.all([
|
|
45280
45288
|
await getChannelsInfo(),
|
|
45281
45289
|
await managerChannelsSignalR(),
|
|
@@ -45284,13 +45292,12 @@ const _sfc_main = {
|
|
|
45284
45292
|
} catch (error2) {
|
|
45285
45293
|
console.log(error2);
|
|
45286
45294
|
} finally {
|
|
45287
|
-
|
|
45295
|
+
channelsStore.setIsHubsConnected(false);
|
|
45288
45296
|
}
|
|
45289
45297
|
};
|
|
45290
45298
|
chatManagerStart();
|
|
45291
45299
|
return (_ctx, _cache) => {
|
|
45292
|
-
|
|
45293
|
-
return withDirectives((openBlock(), createBlock(_sfc_main$5, {
|
|
45300
|
+
return openBlock(), createBlock(_sfc_main$5, {
|
|
45294
45301
|
modelValue: isOpen.value,
|
|
45295
45302
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isOpen.value = $event),
|
|
45296
45303
|
"btn-text": "\u0427\u0430\u0442 \u0441 \u043A\u043B\u0438\u0435\u043D\u0442\u0430\u043C\u0438"
|
|
@@ -45307,9 +45314,7 @@ const _sfc_main = {
|
|
|
45307
45314
|
}, null, 8, ["info-message"])
|
|
45308
45315
|
]),
|
|
45309
45316
|
_: 1
|
|
45310
|
-
}, 8, ["modelValue"])
|
|
45311
|
-
[_directive_loading, isHubsConnected.value]
|
|
45312
|
-
]);
|
|
45317
|
+
}, 8, ["modelValue"]);
|
|
45313
45318
|
};
|
|
45314
45319
|
}
|
|
45315
45320
|
};
|