╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Auth.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
77 } 78 79 pub fn clearGrid(self: *View) void { 80 self.login.clearGrid(); 81 self.logout.clearGrid(); 82 } 83 84 pub fn getGrid(self: View) ?Grid { 85 if (self.session.data.user_id != null) return self.logout.getGrid(); 86 return self.login.getGrid(); 87 } 88 89 pub fn getFocus(self: *View) *Focus { 90 return self.focus; 91 } 92 93 pub fn getSelectedIndex(self: View) ?usize { 94 if (self.session.data.user_id != null) return self.logout.getSelectedIndex(); 95 return self.login.getSelectedIndex(); 96 } 97 }; 98