projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8b64267
)
Ticket.bjs
author
Alan Knowles
<alan@roojs.com>
Mon, 17 Dec 2018 06:08:27 +0000
(14:08 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 17 Dec 2018 06:08:27 +0000
(14:08 +0800)
Ticket.vala
Ticket.bjs
patch
|
blob
|
history
Ticket.vala
patch
|
blob
|
history
diff --git
a/Ticket.bjs
b/Ticket.bjs
index
a517b51
..
ec2c34f
100644
(file)
--- a/
Ticket.bjs
+++ b/
Ticket.bjs
@@
-59,7
+59,7
@@
},
{
"listeners" : {
},
{
"listeners" : {
- "changed" : "() => {\n\tif (this.loading) {\n\t\treturn;\n\t}\n\tvar project_id = this.selectedProjectId();\n\t\n\t// affects projects and milestones..\n\t\n\t\n\t/*if (this.loading) {\n\t\treturn;\n\t}\n\tvar ticket_id = this.selectedTicketId();\n\t\n\tvar name = RooTicket.singleton().usernameLocal();\n\t\n\tif (ticket_id == \"\" || ticket_id == null) {\n\t\n\t\tvar dt = new DateTime.now_local();\n\t\t_this.name.el.set_text(\"wip_%s_%s\".printf(name,dt.format(\"%Y_%b_%d\")));\n\t\treturn;\n\t}\n\t\n\t\n\tvar ticket = RooTicket.singleton().getById(ticket_id);\n \n\t_this.name.el.set_text(\"wip_%s_T%s_%s\".printf(name,ticket.id, ticket.summaryToBranchName()));\n\t\n\t//GLib.debug (//\"Selection: %s, %s\\n\", (string) val1, (string) val2);\n\t*/\n}"
+ "changed" : "() => {\n\tif (this.loading) {\n\t\treturn;\n\t}\n\tvar project_id = this.selectedProjectId();\n\t\n\t
var rt = RooTicket.singleton();\n\trt.loadProjectOptions(project_id);\n\t\n\t_this.milestone_id.loadMilestones();\n\t_this.priority_id.loadPriorities();\n\t_this.severity_id.loadSeverities();\n\t_this.classification_id.loadClassifications();\t\n\t
// affects projects and milestones..\n\t\n\t\n\t/*if (this.loading) {\n\t\treturn;\n\t}\n\tvar ticket_id = this.selectedTicketId();\n\t\n\tvar name = RooTicket.singleton().usernameLocal();\n\t\n\tif (ticket_id == \"\" || ticket_id == null) {\n\t\n\t\tvar dt = new DateTime.now_local();\n\t\t_this.name.el.set_text(\"wip_%s_%s\".printf(name,dt.format(\"%Y_%b_%d\")));\n\t\treturn;\n\t}\n\t\n\t\n\tvar ticket = RooTicket.singleton().getById(ticket_id);\n \n\t_this.name.el.set_text(\"wip_%s_T%s_%s\".printf(name,ticket.id, ticket.summaryToBranchName()));\n\t\n\t//GLib.debug (//\"Selection: %s, %s\\n\", (string) val1, (string) val2);\n\t*/\n}"
},
"* ctor" : "new Gtk.ComboBox.with_entry()",
"id" : "project_id",
},
"* ctor" : "new Gtk.ComboBox.with_entry()",
"id" : "project_id",
diff --git
a/Ticket.vala
b/Ticket.vala
index
79c3eaa
..
2872a8f
100644
(file)
--- a/
Ticket.vala
+++ b/
Ticket.vala
@@
-297,6
+297,13
@@
public class Ticket : Object
}
var project_id = this.selectedProjectId();
}
var project_id = this.selectedProjectId();
+ var rt = RooTicket.singleton();
+ rt.loadProjectOptions(project_id);
+
+ _this.milestone_id.loadMilestones();
+ _this.priority_id.loadPriorities();
+ _this.severity_id.loadSeverities();
+ _this.classification_id.loadClassifications();
// affects projects and milestones..
// affects projects and milestones..