From f8bb263ad12b87da4a7a249edd44932a9e7d1f17 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Mon, 10 Jun 2024 15:19:11 -0700 Subject: Add account management functionality --- Hotline/macOS/HotlinePanelView.swift | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Hotline/macOS/HotlinePanelView.swift') diff --git a/Hotline/macOS/HotlinePanelView.swift b/Hotline/macOS/HotlinePanelView.swift index 374e379..2d4c253 100644 --- a/Hotline/macOS/HotlinePanelView.swift +++ b/Hotline/macOS/HotlinePanelView.swift @@ -88,6 +88,20 @@ struct HotlinePanelView: View { .disabled(ApplicationState.shared.activeServerState == nil) .help("Files") + Button { + ApplicationState.shared.activeServerState?.selection = .accounts + } + label: { + Image(systemName: "person.2.fill") + .resizable() + .scaledToFit() + } + .buttonStyle(.plain) + .frame(width: 18, height: 18) + .opacity(ApplicationState.shared.activeServerState == nil ? 0.5 : 1.0) + .disabled(ApplicationState.shared.activeServerState == nil || ApplicationState.shared.activeHotline?.access?.contains(.canOpenUsers) == false) + .help("Accounts") + Spacer() SettingsLink(label: { -- cgit