fix: Improve condo ID handling and add error message

Prevents client-side generation of condo IDs, delegating this to the backend/service for consistency.
Introduces an alert for save condo errors and ensures the active condo is correctly updated or set.
Adds logic to auto-select the first condo if none is active.
This commit is contained in:
2025-12-07 12:54:51 +01:00
parent ce53d2ea09
commit 9459834b0e
6 changed files with 56 additions and 80 deletions

View File

@@ -1,15 +0,0 @@
# Stage 1: Build del frontend
FROM node:20-alpine as build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2: Serve con Nginx
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]