Skip to content
Snippets Groups Projects
Commit 12dccef0 authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Add roomname to select2 event in check-in-place-select

parent 421ca931
No related branches found
No related tags found
No related merge requests found
Pipeline #52012 passed
......@@ -214,6 +214,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) {
$this.attr("data-object", JSON.stringify(that.object));
$this.data("object", that.object);
const roomName = that.object.name;
if ($this.attr("value") !== identifier) {
that.ignoreValueUpdate = true;
......@@ -225,6 +226,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) {
value: identifier,
capacity: maxCapacity,
room: room,
name: roomName,
},
bubbles: true
}));
......@@ -259,6 +261,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) {
const transformed = that.jsonld.compactMember(that.jsonld.expandMember(place), checkInPlaceContext);
const identifier = transformed["@id"];
const maxCapacity = transformed["maximumPhysicalAttendeeCapacity"];
const roomName = transformed["name"];
const room = place.identifier;
const option = new Option(that.generateOptionText(transformed), identifier, true, true);
......@@ -272,6 +275,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) {
value: identifier,
capacity: maxCapacity,
room: room,
name: roomName,
},
bubbles: true
}));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment