Skip to content

Commit 87a82ae

Browse files
committed
Added unknown venue option to venue configuration
1 parent c9ceed4 commit 87a82ae

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/components/navbar/components/configure-kcapp-modal/configure-kcapp-modal.component.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ module.exports = {
7272
localStorage.set('button-layout', this.state.buttonLayout);
7373

7474
this.state.venueId = parseInt(document.getElementById("venueSelect").value);
75-
localStorage.set('venue_id', this.state.venueId);
75+
if (this.state.venueId === -1) {
76+
localStorage.remove('venue_id');
77+
} else {
78+
localStorage.set('venue_id', this.state.venueId);
79+
}
7680

7781
localStorage.set('confirm-busts', this.state.confirmBusts);
7882
localStorage.set('auto-finish-legs', this.state.autoFinishLegs);

src/components/navbar/components/configure-kcapp-modal/configure-kcapp-modal.marko

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
<div class="block-container-with-header">
6767
<div class="form-group form-check" style="margin-bottom: 1em;">
6868
<select id='venueSelect' class="form-select" style="width: 100%">
69+
<option value=-1 selected=(-1 === state.venueId)>-</option>
6970
<for|venue| of=state.venues>
7071
<option value=venue.id selected=(venue.id === state.venueId)>${venue.name}</option>
7172
</for>

0 commit comments

Comments
 (0)