this.repo = repo;
-
-
+
this.el.move((Gdk.Screen.width() / 2)- 250 ,0);
this.el.set_default_size( 500,200); // not sure why it grows..
_this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
_this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid);
+ 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()));
+ }
+
this.el.run();
}
RooTicket.singleton().loadTickets(
project_id,
- _this.btn_not_me.el.active ? RooTicket.NotMe.TRUE : RooTicket.NotMe.FALSE,
- _this.btn_closed.el.active ? RooTicket.Closed.TRUE : RooTicket.Closed.FALSE
+ _this.btn_not_me.el.active ? RooTicket.Who.ANYBODY : RooTicket.Who.ME,
+ _this.btn_closed.el.active ? RooTicket.Status.ALL : RooTicket.Status.ACTIVE
);
_this.ticketsel.loading = true;
// set gobject values
this.el.expand = false;
this.el.label = "New Ticket";
+
+ //listeners
+ this.el.clicked.connect( () => {
+ _this.el.response(-1);
+ Ticket.singleton().show(_this.repo);
+
+ });
}
// user defined functions