╭ changed ───────────╮ │src/ui/Home/Auth.zig│ ╰────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │53 │ │54 pub fn build(self: *View, allocator: std.mem.Allocator, constraint: layout.Constraint, root_focus: *Focus) !void {│ │55 self.focus.clear(); │ │56 - if (self.session.user_id != null) { │ │56 + if (self.session.data.user_id != null) { │ │57 try self.logout.build(allocator, constraint, root_focus); │ │58 if (self.logout.getGrid()) |inner_grid| { │ │59 try self.focus.addChild(self.logout.getFocus(), inner_grid.size, 0, 0); │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │69 } │ │70 │ │71 pub fn input(self: *View, allocator: std.mem.Allocator, key: inp.Key, root_focus: *Focus) !void {│ │72 - if (self.session.user_id != null) { │ │72 + if (self.session.data.user_id != null) { │ │73 try self.logout.input(allocator, key, root_focus); │ │74 } else { │ │75 try self.login.input(allocator, key, root_focus); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │82 } │ │83 │ │84 pub fn getGrid(self: View) ?Grid { │ │85 - if (self.session.user_id != null) return self.logout.getGrid(); │ │85 + if (self.session.data.user_id != null) return self.logout.getGrid();│ │86 return self.login.getGrid(); │ │87 } │ │88 │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │91 } │ │92 │ │93 pub fn getSelectedIndex(self: View) ?usize { │ │94 - if (self.session.user_id != null) return self.logout.getSelectedIndex(); │ │94 + if (self.session.data.user_id != null) return self.logout.getSelectedIndex();│ │95 return self.login.getSelectedIndex(); │ │96 } │ │97 }; │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯