+ _this.branch_table.el.hide();
+ _this.scrolled_window.el.hide();
+ _this.branch_spinner.el.show();
+ _this.branch_spinner.el.start();
+ _this.el.resize( 500,100);
+ Timeout.add(200, () => {
+
+
+ GLib.debug("Loading tickets");
+
+ var curproj = RooProject.getProjectByRepo(_this.repo);
+ _this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
+
+ _this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid);
+ _this.branchbtn.updateState();
+
+ _this.ticketsel.el.get_child().get_style_context().remove_class("warning");
+ if (tid != "") {
+ var name = RooTicket.singleton().usernameLocal();
+ var ticket = RooTicket.singleton().getById(tid);
+ _this.name.el.set_text("wip_%s_T%s_%s".printf(name,ticket.id, ticket.summaryToBranchName()));
+ } else {
+ _this.ticketsel.el.get_child().get_style_context().add_class("warning");
+ }
+ _this.view.loadTicket(tid);
+ _this.branch_table.el.show();
+ _this.branch_spinner.el.stop();
+ _this.branch_spinner.el.hide();
+ _this.el.resize( 500,100);
+ return false;
+ });
+