Skip to content

Commit eff4a45

Browse files
committed
Merge branch 'panel-settings-button' of http://github.com/SAPlayer/brackets-git into SAPlayer-panel-settings-button
Conflicts: src/Panel.js
2 parents 66f0a7c + e8e8d19 commit eff4a45

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

htmlContent/git-panel.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@
4848
<button title="{{TOOLTIP_PULL}}" class="btn small git-pull"><i class="octicon octicon-repo-pull"></i></button>
4949
<button title="{{TOOLTIP_PUSH}}" class="btn small git-push"><i class="octicon octicon-repo-push"></i></button>
5050
</div>
51-
<button title="{{TOOLTIP_OPEN_BASH}}" class="btn small git-bash"><i class="octicon octicon-terminal"></i></button>
51+
<div class="btn-group">
52+
<button title="{{TOOLTIP_OPEN_BASH}}" class="btn small git-bash"><i class="octicon octicon-terminal"></i></button>
53+
<button title="{{GIT_SETTINGS}}" class="btn small git-settings"><i class="octicon octicon-settings"></i></button>
54+
</div>
5255
<button title="{{TOOLTIP_BUG}}" class="btn small git-bug"><i class="octicon octicon-bug"></i></button>
5356
</div>
5457
<a href="#" class="close">&times;</a>

src/Panel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ define(function (require, exports) {
3030
GitControl = require("./GitControl"),
3131
Strings = require("../strings"),
3232
Utils = require("./Utils"),
33+
SettingsDialog = require("./SettingsDialog"),
3334
PANEL_COMMAND_ID = "brackets-git.panel";
3435

3536
var gitPanelTemplate = require("text!htmlContent/git-panel.html"),
@@ -1304,6 +1305,7 @@ define(function (require, exports) {
13041305
.on("click", ".change-remote", handleRemotePick)
13051306
.on("click", ".remove-remote", handleRemoteRemove)
13061307
.on("click", ".git-remote-new", handleRemoteCreation)
1308+
.on("click", ".git-settings", SettingsDialog.show)
13071309
.on("contextmenu", "tr", function (e) {
13081310
var $this = $(this);
13091311
if ($this.hasClass("history-commit")) { return; }

0 commit comments

Comments
 (0)