╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Members.zig ──────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯
359 self.session.data.form_feedback = .{ .repo_members = .{ .failure = value, .name = try self.session.arena.allocator().dupe(u8, name) } }; 360 return; 361 } 362 try self.session.navigate(landingRoute(self.data.identity, self.data.start, actor, action, name) orelse return error.RouteTooLong); 363 } 364 365 pub fn clearGrid(self: *View) void { 366 self.scroll.clearGrid(); 367 } 368 369 pub fn getGrid(self: View) ?Grid { 370 return self.scroll.getGrid(); 371 } 372 373 pub fn getFocus(self: *View) *Focus { 374 return self.scroll.getFocus(); 375 } 376 377 // up leaves the view from the explanatory text or the confirmation 378 pub fn atTop(self: *View) bool { 379 return self.data.confirm != null or self.contentBox().getFocus().child_id == self.aboutBox().getFocus().id; 380 } 381 }; 382