Skip to content

Commit e62d64c

Browse files
added meeting name to the meeting controller data field
1 parent b808ac9 commit e62d64c

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

client/packages/lowcoder/src/comps/comps/meetingComp/videoMeetingControllerComp.tsx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,10 @@ let MTComp = (function () {
211211
videoSettings: jsonObjectExposingStateControl(""),
212212
videoWidth: numberExposingStateControl("videoWidth", 200),
213213
videoHeight: numberExposingStateControl("videoHeight", 200),
214-
appId: withDefault(StringControl, trans("prop.appid")),
214+
appId: withDefault(StringControl, trans("meeting.appid")),
215215
participants: stateComp<JSONValue>([]),
216216
host: stringExposingStateControl("host"),
217+
meetingName: stringExposingStateControl("meetingName"),
217218
};
218219
return new ContainerCompBuilder(childrenMap, (props, dispatch) => {
219220
const isTopBom = ["top", "bottom"].includes(props.placement);
@@ -316,7 +317,10 @@ let MTComp = (function () {
316317
.setPropertyViewFn((children) => (
317318
<>
318319
<Section name={sectionNames.basic}>
319-
{children.appId.propertyView({ label: trans("prop.appid") })}
320+
{children.appId.propertyView({ label: trans("meeting.appid") })}
321+
{children.meetingName.propertyView({
322+
label: trans("meeting.meetingName"),
323+
})}
320324
{children.placement.propertyView({
321325
label: trans("drawer.placement"),
322326
radioButton: true,
@@ -417,7 +421,9 @@ MTComp = withMethodExposing(MTComp, [
417421
comp.children.host.change(userId + "");
418422
await publishVideo(
419423
comp.children.appId.getView(),
420-
"testsdaadasdsa",
424+
comp.children.meetingName.getView().value == ""
425+
? userId + "_meetingId"
426+
: comp.children.meetingName.getView().value,
421427
comp.children
422428
);
423429
},
@@ -449,9 +455,10 @@ MTComp = withMethodExposing(MTComp, [
449455

450456
export const VideoMeetingControllerComp = withExposingConfigs(MTComp, [
451457
new NameConfig("visible", trans("export.visibleDesc")),
452-
new NameConfig("appId", trans("prop.appid")),
453-
new NameConfig("host", trans("prop.appid")),
454-
new NameConfig("participants", trans("prop.participants")),
458+
new NameConfig("appId", trans("meeting.appid")),
459+
new NameConfig("host", trans("meeting.host")),
460+
new NameConfig("participants", trans("meeting.participants")),
461+
new NameConfig("meetingName", trans("meeting.meetingName")),
455462
]);
456463

457464
export function agoraClient() {

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ export const en = {
157157
showClear: "Show clear button",
158158
showSearch: "Searchable",
159159
defaultValue: "Default value",
160-
participants: "Participants",
161-
appid: "Application Id",
162160
required: "Required field",
163161
readOnly: "Read only",
164162
readOnlyTooltip:
@@ -1439,6 +1437,10 @@ export const en = {
14391437
meeting: "Meeting Settings",
14401438
size: "Size",
14411439
top: "Top",
1440+
host: "Host",
1441+
participants: "Participants",
1442+
appid: "Application Id",
1443+
meetingName: "Meeting Name",
14421444
right: "Right",
14431445
bottom: "Bottom",
14441446
videoId: "Video Id",

0 commit comments

Comments
 (0)