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
Checking pipeline status
...@@ -214,6 +214,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) { ...@@ -214,6 +214,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) {
$this.attr("data-object", JSON.stringify(that.object)); $this.attr("data-object", JSON.stringify(that.object));
$this.data("object", that.object); $this.data("object", that.object);
const roomName = that.object.name;
if ($this.attr("value") !== identifier) { if ($this.attr("value") !== identifier) {
that.ignoreValueUpdate = true; that.ignoreValueUpdate = true;
...@@ -225,6 +226,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) { ...@@ -225,6 +226,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) {
value: identifier, value: identifier,
capacity: maxCapacity, capacity: maxCapacity,
room: room, room: room,
name: roomName,
}, },
bubbles: true bubbles: true
})); }));
...@@ -259,6 +261,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) { ...@@ -259,6 +261,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) {
const transformed = that.jsonld.compactMember(that.jsonld.expandMember(place), checkInPlaceContext); const transformed = that.jsonld.compactMember(that.jsonld.expandMember(place), checkInPlaceContext);
const identifier = transformed["@id"]; const identifier = transformed["@id"];
const maxCapacity = transformed["maximumPhysicalAttendeeCapacity"]; const maxCapacity = transformed["maximumPhysicalAttendeeCapacity"];
const roomName = transformed["name"];
const room = place.identifier; const room = place.identifier;
const option = new Option(that.generateOptionText(transformed), identifier, true, true); const option = new Option(that.generateOptionText(transformed), identifier, true, true);
...@@ -272,6 +275,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) { ...@@ -272,6 +275,7 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) {
value: identifier, value: identifier,
capacity: maxCapacity, capacity: maxCapacity,
room: room, room: room,
name: roomName,
}, },
bubbles: true 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