From 1f94c273ae22888e31a3368fa882573568bb46ec Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Wed, 4 Feb 2026 12:09:22 +0100 Subject: [PATCH] feat(activate): add dialog state management and auto-activation on mount - Introduced data properties for managing info and confirmation dialog states, enhancing user interaction. - Implemented auto-activation of the component upon mounting, streamlining the activation process for users. --- frontend/src/views/Activate.vue | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/frontend/src/views/Activate.vue b/frontend/src/views/Activate.vue index 45cba40..3094ef7 100644 --- a/frontend/src/views/Activate.vue +++ b/frontend/src/views/Activate.vue @@ -33,6 +33,30 @@ import ConfirmDialog from '../components/ConfirmDialog.vue'; import { buildInfoConfig, buildConfirmConfig, safeErrorMessage } from '../utils/dialogUtils.js'; export default { + data() { + return { + // Dialog States + infoDialog: { + isOpen: false, + title: '', + message: '', + details: '', + type: 'info' + }, + confirmDialog: { + isOpen: false, + title: '', + message: '', + details: '', + type: 'info', + resolveCallback: null + } + }; + }, + mounted() { + // Aktivierung direkt beim Aufruf des Links ausführen + this.activate(); + }, methods: { // Dialog Helper Methods async showInfo(title, message, details = '', type = 'info') {