From 12dccef0a8e68b91f02d945ea79f496e95e54a61 Mon Sep 17 00:00:00 2001 From: Tamara Steinwender <tamara.steinwender@tugraz.at> Date: Mon, 19 Jul 2021 17:02:17 +0200 Subject: [PATCH] Add roomname to select2 event in check-in-place-select --- packages/check-in-place-select/src/check-in-place-select.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/check-in-place-select/src/check-in-place-select.js b/packages/check-in-place-select/src/check-in-place-select.js index 093a7d1d..777d5900 100644 --- a/packages/check-in-place-select/src/check-in-place-select.js +++ b/packages/check-in-place-select/src/check-in-place-select.js @@ -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 })); -- GitLab