architwin 1.0.76 → 1.0.78
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,5 +1,7 @@
|
|
|
1
|
+
import { _mpConfig } from "../../../architwin";
|
|
1
2
|
export let activeMenu;
|
|
2
3
|
export function renderMenuBar(iFrame) {
|
|
4
|
+
var _a;
|
|
3
5
|
if (!iFrame) {
|
|
4
6
|
console.error(`Could not find target iFrame`);
|
|
5
7
|
return;
|
|
@@ -8,6 +10,8 @@ export function renderMenuBar(iFrame) {
|
|
|
8
10
|
menuBarElement.classList.add('at_toolbar_container');
|
|
9
11
|
menuBarElement.setAttribute('id', 'at-menu-bar');
|
|
10
12
|
menuBarElement.setAttribute('data-cy', 'at-menu-bar');
|
|
13
|
+
const isMeetingEnabled = (_a = _mpConfig.toolbarConfig.menuItems.meeting) !== null && _a !== void 0 ? _a : false;
|
|
14
|
+
console.log("__@ isMeetingEnabled: ", isMeetingEnabled);
|
|
11
15
|
menuBarElement.innerHTML = `
|
|
12
16
|
<div class="at_sidebar_button_icon">
|
|
13
17
|
<span class="mdi mdi-bullseye" id="at-expand-btn" data-cy="at-expand-btn" target-pane="at-tag-list-pane"></span>
|
|
@@ -18,7 +22,7 @@ export function renderMenuBar(iFrame) {
|
|
|
18
22
|
<div class="at_sidebar_button_icon">
|
|
19
23
|
<span class="mdi mdi-map" id="at-minimap-btn" data-cy="at-minimap-btn" target-pane="at-map"></span>
|
|
20
24
|
</div>
|
|
21
|
-
<div class="at_sidebar_button_icon">
|
|
25
|
+
<div class="at_sidebar_button_icon" ${isMeetingEnabled ? 'visible' : 'hidden'}>
|
|
22
26
|
<span class="mdi mdi-message-video" id="at-videocall-btn" data-cy="at-videocall-btn" target-pane="at-video-call-pane"></span>
|
|
23
27
|
</div>
|
|
24
28
|
<div class="at_sidebar_button_icon">
|
package/lib/meeting/templates.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// ================== START MEETING SIDEBAR TEMPLATES ======================= //
|
|
2
|
+
import { _mpConfig } from "../architwin";
|
|
2
3
|
/**
|
|
3
4
|
* PREMEETING TEMPLATE
|
|
4
5
|
*/
|
|
@@ -249,9 +250,12 @@ export function createMeetingTemplate() {
|
|
|
249
250
|
* JOIN MEETING TEMPLATE
|
|
250
251
|
*/
|
|
251
252
|
export function joinMeetingTemplate(link) {
|
|
253
|
+
var _a;
|
|
252
254
|
console.log("__@ joinMeeting link: ", link);
|
|
255
|
+
const isMeetingEnabled = (_a = _mpConfig.toolbarConfig.menuItems.meeting) !== null && _a !== void 0 ? _a : false;
|
|
256
|
+
console.log("__@ isMeetingEnabled: ", isMeetingEnabled);
|
|
253
257
|
return `
|
|
254
|
-
<div id="at-join-meeting" data-cy="at-join-meeting" class="at_sidebar_container">
|
|
258
|
+
<div id="at-join-meeting" data-cy="at-join-meeting" class="at_sidebar_container" ${isMeetingEnabled ? 'visible' : 'hidden'}>
|
|
255
259
|
<div id="at-premeet-header" data-cy="at-premeet-header" class="at_header_container">
|
|
256
260
|
<span class="at_header">Join Meeting</span>
|
|
257
261
|
<span id="at-premeet-close" data-cy="at-premeet-close" style="cursor: pointer;" class="mdi mdi-close-circle-outline at_icon-2"></span>
|