Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ SPDX-License-Identifier: EUPL-1.2
EXAM Quickstart for developers
=====================================

1. Prerequisites: install SBT, Java (21), Node (>= 18) and PostgreSQL (>= 9.4).
1. Prerequisites: install SBT, Java (25), Node (>= 18) and PostgreSQL (>= 9.4).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Iteasiassa 21 on tässä bräntissä minimivaatimus tai ainakin pitäisi olla.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ei toimi ilman virheilmotuksia


2. Create PostgreSQL database

**Option A: Using Docker (recommended for development):**

$ docker compose up -d postgres
$ docker compose up -d postgres

Or with the provided Makefile:

Expand Down
7 changes: 6 additions & 1 deletion ui/src/app/calendar/booking-calendar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import timeGridPlugin from '@fullcalendar/timegrid';
import { TranslateService } from '@ngx-translate/core';
import { DateTime } from 'luxon';
import type { Accessibility, ExamRoom } from 'src/app/reservation/reservation.model';
import { SessionService } from 'src/app/session/session.service';
import { CalendarService } from './calendar.service';

@Component({
Expand All @@ -32,7 +33,7 @@ import { CalendarService } from './calendar.service';
template: `
@if (visible()) {
<div class="row my-2">
@if (visible() && passwordVerified()) {
@if (visible() && (passwordVerified() || isAdmin())) {
<div class="col-md-12">
<full-calendar #fc [options]="calendarOptions()"></full-calendar>
</div>
Expand Down Expand Up @@ -62,11 +63,15 @@ export class BookingCalendarComponent implements OnInit, AfterViewInit {
calendarOptions = signal<CalendarOptions>({});
searchStart = DateTime.now().startOf('week').toISO();
searchEnd = DateTime.now().endOf('week').toISO();
isAdmin = signal(false);

private translate = inject(TranslateService);
private Calendar = inject(CalendarService);
private Session = inject(SessionService);

constructor() {
this.isAdmin.set(this.Session.getUser().isAdmin);

this.calendarOptions.set({
plugins: [luxon2Plugin, timeGridPlugin],
initialView: 'timeGridWeek',
Expand Down
Loading