RepoStatusPopover.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 19 Dec 2018 04:57:45 +0000 (12:57 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 19 Dec 2018 04:57:45 +0000 (12:57 +0800)
RepoStatusPopover.vala

RepoStatusPopover.bjs
RepoStatusPopover.vala

index 4ad631b..95f0e43 100644 (file)
         },
         {
          "listeners" : {
         },
         {
          "listeners" : {
-          "button_press_event" : "() => {\n   _this.repo.git({ \"commit\" , \"-a\" ,\"-m\", \"Uncommited changes synced\" });\n   _this.repo.push();\n   _this.repo.loadStatus();\n   \n    _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);\n    _this.status_view.el.get_buffer().set_text(_this.repo.git_status);\n    \n   _this.el.hide();\n   Clones.singleton().reposStore.load();\n   \n    return false;\n}"
+          "button_press_event" : "() => {\n\n   _this.el.hide();\n   Clones.singleton().el.hide();\n   MergeBranch.singleton().show(this.ticket, null);   \n    return false;\n}"
          },
          "label" : "Merge branch/  ticket",
          "xtype" : "Button",
          },
          "label" : "Merge branch/  ticket",
          "xtype" : "Button",
index efe1624..6746345 100644 (file)
@@ -585,16 +585,10 @@ public class RepoStatusPopover : Object
 
             //listeners
             this.el.button_press_event.connect( () => {
 
             //listeners
             this.el.button_press_event.connect( () => {
-               _this.repo.git({ "commit" , "-a" ,"-m", "Uncommited changes synced" });
-               _this.repo.push();
-               _this.repo.loadStatus();
-               
-                _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);
-                _this.status_view.el.get_buffer().set_text(_this.repo.git_status);
-                
+            
                _this.el.hide();
                _this.el.hide();
-               Clones.singleton().reposStore.load();
-               
+               Clones.singleton().el.hide();
+               MergeBranch.singleton().show(this.ticket, null);   
                 return false;
             });
         }
                 return false;
             });
         }