// my vars (dec)
this.repo = null;
- this.running = true;
+ this.running = false;
this.queue = null;
// set gobject values
this.el.response.connect( (self, response_id) => {
GLib.debug("got %d", (int) response_id);
- if (response_id < 1) {
- _this.el.hide();
- this.running = false;
- return;
- }
-
-
+
// have they selected a ticket..
// -- each repo would have their active ticket (only one per repo)
// -- so we could just store that in there
// -- initial load can check the contents of the ticket files on first scan.
- var ticket_id = _this.ticketsel.selectedTicketId();
-
- if (ticket_id == "") {
- _this.ticketsel.el.get_child().get_style_context().add_class("warning");
- return;
+
+
+ if (response_id < 1) {
+ _this.el.hide();
+ this.running = false;
+ return;
}
+ var ticket_id = _this.ticketsel.selectedTicketId();
+
if (this.repo != null) {
var bn = _this.name.el.get_text();
}
}
-
+
this.running = false;
_this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
_this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid);
+ _this.createbtn.updateState();
+
_this.ticketsel.el.get_child().get_style_context().remove_class("warning");
if (tid != "") {
var name = RooTicket.singleton().usernameLocal();
_this.scrolled_window.el.show();
_this.view.loadTicket(ticket.id);
+ _this.createbtn.updateState();
+
//GLib.debug (//"Selection: %s, %s\n", (string) val1, (string) val2);
});
}
//listeners
this.el.clicked.connect( () => {
+
GLib.debug("fire response = 1");
+
+ var ticket_id = _this.ticketsel.selectedTicketId();
+
+ if (ticket_id == "") {
+ _this.ticketsel.el.get_child().get_style_context().add_class("warning");
+ return;
+ }
+
_this.el.response(1);
});
}