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.
This commit is contained in:
Torsten Schulz (local)
2026-02-04 12:09:22 +01:00
parent e333a54025
commit 1f94c273ae

View File

@@ -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') {