Skip to content

Commit e8e8d19

Browse files
author
Marcel Gerber
committed
Add settings button to the panel
1 parent 251517e commit e8e8d19

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
@@ -49,7 +49,10 @@
4949
<button title="{{TOOLTIP_PULL}}" class="btn small git-pull"><i class="octicon octicon-repo-pull"></i></button>
5050
<button title="{{TOOLTIP_PUSH}}" class="btn small git-push"><i class="octicon octicon-repo-push"></i></button>
5151
</div>
52-
<button title="{{TOOLTIP_OPEN_BASH}}" class="btn small git-bash"><i class="octicon octicon-terminal"></i></button>
52+
<div class="btn-group">
53+
<button title="{{TOOLTIP_OPEN_BASH}}" class="btn small git-bash"><i class="octicon octicon-terminal"></i></button>
54+
<button title="{{GIT_SETTINGS}}" class="btn small git-settings"><i class="octicon octicon-settings"></i></button>
55+
</div>
5356
<button title="{{TOOLTIP_BUG}}" class="btn small git-bug"><i class="octicon octicon-bug"></i></button>
5457
</div>
5558
<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"),
@@ -1242,6 +1243,7 @@ define(function (require, exports) {
12421243
.on("click", ".git-init", handleGitInit)
12431244
.on("click", ".git-clone", handleGitClone)
12441245
.on("click", ".git-remotes-dropdown a", handleRemotePick)
1246+
.on("click", ".git-settings", SettingsDialog.show)
12451247
.on("contextmenu", "tr", function (e) {
12461248
var $this = $(this);
12471249
if ($this.hasClass("history-commit")) { return; }

0 commit comments

Comments
 (0)