Skip to content

Commit 6ebe0f3

Browse files
authored
Merge pull request #736 from intersystems/issue-687
Responsive stash
2 parents 50c83a4 + edad912 commit 6ebe0f3

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Partial support for production decomposition with the new interoperability editors
1313

1414
### Fixed
15+
- Popping from stash is more responsive (#687)
1516
- Favorites links for Git pages now works on recent IRIS versions (#734)
1617

1718
## [2.10.0] - 2025-02-10

git-webui/release/share/git-webui/webui/js/git-webui.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -2005,10 +2005,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
20052005
}
20062006
var stashIndex = parseInt($(".log-entry.active .stash-list-index").text());
20072007
webui.git_command(["stash", "apply", "stash@{"+stashIndex+"}"], function(output) {
2008-
webui.showSuccess(output);
2009-
parent.stashView.update(0);
2008+
webui.showSuccess("Applied stash item");
2009+
parent.update();
20102010
self.clear()
2011-
});
2011+
}, webui.showWarning(output), webui.showError(output));
20122012
}
20132013

20142014
self.popSelectedStash = function() {
@@ -2017,10 +2017,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
20172017
}
20182018
var stashIndex = parseInt($(".log-entry.active .stash-list-index").text());
20192019
webui.git_command(["stash", "pop", "stash@{"+stashIndex+"}"], function(output) {
2020-
webui.showSuccess(output);
2021-
parent.stashView.update(0);
2020+
webui.showSuccess("Popped from stash");
2021+
parent.update();
20222022
self.clear()
2023-
});
2023+
}, webui.showWarning(output), webui.showError(output));
20242024
}
20252025

20262026
self.dropSelectedStash = function() {
@@ -2029,10 +2029,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
20292029
}
20302030
var stashIndex = parseInt($(".log-entry.active .stash-list-index").text());
20312031
webui.git_command(["stash", "drop", "stash@{"+stashIndex+"}"], function() {
2032-
webui.showSuccess(output.substring(output.indexOf("Dropped")));
2033-
parent.stashView.update(0);
2032+
webui.showSuccess("Dropped from stash");
2033+
parent.update();
20342034
self.clear();
2035-
});
2035+
}, webui.showWarning(output), webui.showError(output));
20362036
}
20372037

20382038
var html = '<div class="diff-view-container panel panel-default">';

git-webui/src/share/git-webui/webui/js/git-webui.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -2005,10 +2005,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
20052005
}
20062006
var stashIndex = parseInt($(".log-entry.active .stash-list-index").text());
20072007
webui.git_command(["stash", "apply", "stash@{"+stashIndex+"}"], function(output) {
2008-
webui.showSuccess(output);
2009-
parent.stashView.update(0);
2008+
webui.showSuccess("Applied stash item");
2009+
parent.update();
20102010
self.clear()
2011-
});
2011+
}, webui.showWarning(output), webui.showError(output));
20122012
}
20132013

20142014
self.popSelectedStash = function() {
@@ -2017,10 +2017,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
20172017
}
20182018
var stashIndex = parseInt($(".log-entry.active .stash-list-index").text());
20192019
webui.git_command(["stash", "pop", "stash@{"+stashIndex+"}"], function(output) {
2020-
webui.showSuccess(output);
2021-
parent.stashView.update(0);
2020+
webui.showSuccess("Popped from stash");
2021+
parent.update();
20222022
self.clear()
2023-
});
2023+
}, webui.showWarning(output), webui.showError(output));
20242024
}
20252025

20262026
self.dropSelectedStash = function() {
@@ -2029,10 +2029,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
20292029
}
20302030
var stashIndex = parseInt($(".log-entry.active .stash-list-index").text());
20312031
webui.git_command(["stash", "drop", "stash@{"+stashIndex+"}"], function() {
2032-
webui.showSuccess(output.substring(output.indexOf("Dropped")));
2033-
parent.stashView.update(0);
2032+
webui.showSuccess("Dropped from stash");
2033+
parent.update();
20342034
self.clear();
2035-
});
2035+
}, webui.showWarning(output), webui.showError(output));
20362036
}
20372037

20382038
var html = '<div class="diff-view-container panel panel-default">';

0 commit comments

Comments
 (0)