Export drin noch nicht komplett
Dieser Commit ist enthalten in:
@ -85,7 +85,22 @@ class AccountCard(QFrame):
|
||||
show_error(self, "Export blockiert", error_msg)
|
||||
return
|
||||
|
||||
self.export_requested.emit(self.account_data)
|
||||
# Neuer Feature 2: Profil-Export mit ProfileExportController
|
||||
account_id = self.account_data.get("id")
|
||||
if not account_id:
|
||||
from views.widgets.modern_message_box import show_error
|
||||
show_error(self, "Export fehlgeschlagen", "Account-ID nicht gefunden.")
|
||||
return
|
||||
|
||||
# Hol db_manager aus dem Parent
|
||||
parent_window = self.window()
|
||||
if hasattr(parent_window, 'db_manager'):
|
||||
from controllers.profile_export_controller import ProfileExportController
|
||||
export_controller = ProfileExportController(parent_window.db_manager)
|
||||
export_controller.export_account(self, account_id)
|
||||
else:
|
||||
# Fallback: Altes Signal emittieren (für Kompatibilität)
|
||||
self.export_requested.emit(self.account_data)
|
||||
|
||||
def _on_delete_clicked(self):
|
||||
"""Handler für Delete-Button"""
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren