forked from Support/sp-hydra-veil-gui
Phasing out legacy edit page
This commit is contained in:
parent
72f9f0b97d
commit
a0b39365a3
2 changed files with 0 additions and 1035 deletions
|
|
@ -3,7 +3,6 @@ from core.models.manage.database_recovery import wipe_and_kill_entire_app
|
||||||
from core.infrastructure.state_management.global_state_controller import connected_system_profile_id, connected_session_profile_ids, is_connected
|
from core.infrastructure.state_management.global_state_controller import connected_system_profile_id, connected_session_profile_ids, is_connected
|
||||||
from core.observers.Notifications import Notifications, EventType
|
from core.observers.Notifications import Notifications, EventType
|
||||||
from core.models.enum_models import ProtocolChoice
|
from core.models.enum_models import ProtocolChoice
|
||||||
from core.services.profiles.update_profile import update_profile
|
|
||||||
# from core.controllers.SessionStateController import SessionStateController
|
# from core.controllers.SessionStateController import SessionStateController
|
||||||
|
|
||||||
# from core.services.networking.systemwide.systemwide_wireguard import change_port_then_reconnect
|
# from core.services.networking.systemwide.systemwide_wireguard import change_port_then_reconnect
|
||||||
|
|
@ -388,22 +387,6 @@ def delete_profile_action(profile_id: int, ui_caller: Callable) -> Result:
|
||||||
return Result(valid=True) # this doesn't mean it deleted, just that it launched.
|
return Result(valid=True) # this doesn't mean it deleted, just that it launched.
|
||||||
|
|
||||||
|
|
||||||
def edit_profile(
|
|
||||||
profile_id: int,
|
|
||||||
key: str,
|
|
||||||
new_value: str,
|
|
||||||
ui_caller: Callable
|
|
||||||
):
|
|
||||||
"""Thread in background the updating of the profile"""
|
|
||||||
take_action(
|
|
||||||
action=update_profile,
|
|
||||||
ui_caller=ui_caller,
|
|
||||||
profile_id=profile_id,
|
|
||||||
key=key,
|
|
||||||
new_value=new_value
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@register_action(ResultError.DELETE_DB)
|
@register_action(ResultError.DELETE_DB)
|
||||||
def shut_down_and_wipe() -> Result:
|
def shut_down_and_wipe() -> Result:
|
||||||
"""Attempt a graceful close of profiles, then wipe the database regardless."""
|
"""Attempt a graceful close of profiles, then wipe the database regardless."""
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue