mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-08 06:48:09 +03:00
feat: expand server organization actions
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user