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:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user