feat: implement granular access revocation and global unsharing in the account permissions dialog

This commit is contained in:
2026-02-21 02:45:01 +01:00
parent 7d1e19d881
commit 1f5d2e08e5
6 changed files with 372 additions and 126 deletions

View File

@@ -7,6 +7,8 @@ contextBridge.exposeInMainWorld('electronAPI', {
deleteAccount: (id: string) => ipcRenderer.invoke('delete-account', id),
switchAccount: (loginName: string) => ipcRenderer.invoke('switch-account', loginName),
shareAccountWithUser: (steamId: string, targetSteamId: string) => ipcRenderer.invoke('share-account-with-user', steamId, targetSteamId),
revokeAccountAccess: (steamId: string, targetSteamId: string) => ipcRenderer.invoke('revoke-account-access', steamId, targetSteamId),
revokeAllAccountAccess: (steamId: string) => ipcRenderer.invoke('revoke-all-account-access', steamId),
openExternal: (url: string) => ipcRenderer.invoke('open-external', url),
openSteamLogin: (steamId: string) => ipcRenderer.invoke('open-steam-login', steamId),