@@ -2005,10 +2005,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
2005
2005
}
2006
2006
var stashIndex = parseInt ( $ ( ".log-entry.active .stash-list-index" ) . text ( ) ) ;
2007
2007
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 ( ) ;
2010
2010
self . clear ( )
2011
- } ) ;
2011
+ } , webui . showWarning ( output ) , webui . showError ( output ) ) ;
2012
2012
}
2013
2013
2014
2014
self . popSelectedStash = function ( ) {
@@ -2017,10 +2017,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
2017
2017
}
2018
2018
var stashIndex = parseInt ( $ ( ".log-entry.active .stash-list-index" ) . text ( ) ) ;
2019
2019
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 ( ) ;
2022
2022
self . clear ( )
2023
- } ) ;
2023
+ } , webui . showWarning ( output ) , webui . showError ( output ) ) ;
2024
2024
}
2025
2025
2026
2026
self . dropSelectedStash = function ( ) {
@@ -2029,10 +2029,10 @@ webui.DiffView = function(sideBySide, hunkSelectionAllowed, parent, stashedCommi
2029
2029
}
2030
2030
var stashIndex = parseInt ( $ ( ".log-entry.active .stash-list-index" ) . text ( ) ) ;
2031
2031
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 ( ) ;
2034
2034
self . clear ( ) ;
2035
- } ) ;
2035
+ } , webui . showWarning ( output ) , webui . showError ( output ) ) ;
2036
2036
}
2037
2037
2038
2038
var html = '<div class="diff-view-container panel panel-default">' ;
0 commit comments