Ticket.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 17 Dec 2018 06:44:16 +0000 (14:44 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 17 Dec 2018 06:44:16 +0000 (14:44 +0800)
Ticket.vala

Ticket.bjs
Ticket.vala

index 26406e6..2a41ff9 100644 (file)
         },
         {
          "listeners" : {
-          "clicked" : "() => {\n\tGLib.debug(\"fire response = 1\");\n\t\n\t\n\tvar invalid = false;\n\t\n\t// validate first...\n\t_this.project_id.el.get_style_context().remove_class(\"warning\");\t\n\tif (_this.project_id.getProjectId() == \"\") {\n\t\t_this.project_id.el.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t\n\t\n\tif (invalid) {\n\t\treturn;\n\t}\n\t\n\t_this.el.response(1);\n}"
+          "clicked" : "() => {\n\tGLib.debug(\"fire response = 1\");\n\t\n\t\n\tvar invalid = false;\n\t\n\t// validate first...\n\t_this.project_id.el.get_style_context().remove_class(\"warning\");\t\n\tif (_this.project_id.selectedProjectId() == \"\") {\n\t\t_this.project_id.el.get_style_context().add_class(\"warning\");\n\t\tinvalid = true;\n\t}\n\t\n\t\n\t\n\tif (invalid) {\n\t\treturn;\n\t}\n\t\n\t_this.el.response(1);\n}"
          },
          "label" : "Create Ticket",
          "* init" : "{\n   this.el.get_style_context().add_class(\"suggested-action\");\n}\n",
index 4c28919..85624e2 100644 (file)
@@ -1167,7 +1167,7 @@ public class Ticket : Object
                
                // validate first...
                _this.project_id.el.get_style_context().remove_class("warning");        
-               if (_this.project_id.getProjectId() == "") {
+               if (_this.project_id.selectedProjectId() == "") {
                        _this.project_id.el.get_style_context().add_class("warning");
                        invalid = true;
                }