feat: expand server organization actions

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2026-08-29 19:11:20 +08:00
parent 2703f3db39
commit 15cb2c3b01
4 changed files with 420 additions and 65 deletions
+19
View File
@@ -84,6 +84,25 @@ class Storage:
"""Return the user servers value."""
return Storage._UserServersStorage().data()
@staticmethod
def moveUserServers(profileIds, visibleProfileIds, position: str) -> bool:
"""Move selected servers within the caller's visible repository scope."""
return Storage._UserServersStorage().moveProfiles(
profileIds,
visibleProfileIds,
position,
)
@staticmethod
def moveUserServersToSubscription(profileIds, unique: str) -> bool:
"""Move servers to a subscription group as locally managed entries."""
if unique and Storage.SubscriptionGroup(unique) is None:
return False
return Storage._UserServersStorage().moveProfilesToSubscription(
profileIds, unique
)
@staticmethod
def UserSubs() -> dict[str, dict]:
"""Return the user subs value."""