mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 23:55:23 +00:00
feat: rebuild desktop sync as linked server accounts, fix packaged plugin bundles and UI scaling
This commit is contained in:
1 parent
7c02daccf4
commit
6cd9a2846d
242 files changed
+39127
-8558
No files matched your search
@@ -1129,11 +1129,9 @@ export function DashboardTab({
|
||||
|
||||
getUserInfo()
|
||||
.then((info) => {
|
||||
// Remote sync is not yet configurable (added in a later phase), so
|
||||
// a standalone desktop install never shows admin/user-management
|
||||
// UI -- it has exactly one implicit user and nothing to administer.
|
||||
const isRemoteSyncConnected = false;
|
||||
setIsAdmin(!!info.is_admin && (!isElectron() || isRemoteSyncConnected));
|
||||
// A desktop on its own has one implicit user and nothing to
|
||||
// administer; linked, it is an admin when the server account is.
|
||||
setIsAdmin(isElectron() ? !!info.linked?.isAdmin : !!info.is_admin);
|
||||
})
|
||||
.catch(() => {});
|
||||
getUptime()
|
||||
|
||||
Reference in new issue
Block a user