X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=RepoStatusPopover.bjs;h=1a1363ae745d88ad78c17ab036e800400f5a179c;hp=43fc367168175bdbe47458b90692b0aeae6f78c5;hb=005e856ef0c36a43d6417539c28f6fd42dbaec56;hpb=22d38a5e650911a1fffde6188630369ed2d65735 diff --git a/RepoStatusPopover.bjs b/RepoStatusPopover.bjs index 43fc3671..1a1363ae 100644 --- a/RepoStatusPopover.bjs +++ b/RepoStatusPopover.bjs @@ -130,20 +130,20 @@ }, { "listeners" : { - "button_press_event" : "() => {\n _this.el.hide();\n return false;\n}" + "button_press_event" : "() => {\n \n \n GitMonitor.gitmonitor.stop();\n _this.repo.git({ \"reset\" , \"--hard\" });\n _this.repo.loadStatus();\n GitMonitor.gitmonitor.start();\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 Clones.singleton().reposStore.load();\n \n _this.el.hide();\n return false;\n}" }, - "label" : "Ignore for now", - "xtype" : "Button", + "label" : "Reset to remote", "* pack" : "add", + "xtype" : "Button", "$ xns" : "Gtk" }, { "listeners" : { - "button_press_event" : "() => {\n \n \n GitMonitor.gitmonitor.stop();\n _this.repo.git({ \"reset\" , \"--hard\" });\n _this.repo.loadStatus();\n GitMonitor.gitmonitor.start();\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 Clones.singleton().reposStore.load();\n \n _this.el.hide();\n return false;\n}" + "button_press_event" : "() => {\n \n \n GitMonitor.gitmonitor.stop();\n _this.repo.git({ \"pull\" , \"--all\" });\n _this.repo.loadStatus();\n GitMonitor.gitmonitor.start();\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 Clones.singleton().reposStore.load();\n \n _this.el.hide();\n return false;\n}" }, - "label" : "Reset to remote", - "* pack" : "add", + "label" : "Pull updates", "xtype" : "Button", + "* pack" : "add", "$ xns" : "Gtk" }, { @@ -151,8 +151,8 @@ "button_press_event" : "() => {\n \n \n GitMonitor.gitmonitor.stop();\n _this.repo.git({ \"pull\" , \"--all\" });\n _this.repo.loadStatus();\n GitMonitor.gitmonitor.start();\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 Clones.singleton().reposStore.load();\n \n _this.el.hide();\n return false;\n}" }, "label" : "Pull updates", - "xtype" : "Button", "* pack" : "add", + "xtype" : "Button", "$ xns" : "Gtk" } ]