Commit 442eb843 authored by Phil Hughes's avatar Phil Hughes

fixed mis-aligned icon

hide success message when staging files
improve action button hover
parent 5c25ea48
...@@ -74,6 +74,8 @@ export default { ...@@ -74,6 +74,8 @@ export default {
> >
<header <header
class="multi-file-commit-panel-header" class="multi-file-commit-panel-header"
@mouseenter="setShowActionButton(true)"
@mouseleave="setShowActionButton(false)"
> >
<div <div
class="multi-file-commit-panel-header-title" class="multi-file-commit-panel-header-title"
...@@ -86,14 +88,12 @@ export default { ...@@ -86,14 +88,12 @@ export default {
{{ titleText }} {{ titleText }}
<span <span
v-show="!showActionButton" v-show="!showActionButton"
@mouseenter="setShowActionButton(true)"
class="ide-commit-file-count" class="ide-commit-file-count"
> >
{{ fileList.length }} {{ fileList.length }}
</span> </span>
<button <button
v-show="showActionButton" v-show="showActionButton"
@mouseleave="setShowActionButton(false)"
type="button" type="button"
class="btn btn-blank btn-link ide-staged-action-btn" class="btn btn-blank btn-link ide-staged-action-btn"
@click="actionBtnClicked" @click="actionBtnClicked"
......
...@@ -123,6 +123,8 @@ export const scrollToTab = () => { ...@@ -123,6 +123,8 @@ export const scrollToTab = () => {
}; };
export const stageAllChanges = ({ state, commit }) => { export const stageAllChanges = ({ state, commit }) => {
commit(types.SET_LAST_COMMIT_MSG, '');
state.changedFiles.forEach(file => commit(types.STAGE_CHANGE, file.path)); state.changedFiles.forEach(file => commit(types.STAGE_CHANGE, file.path));
}; };
......
...@@ -184,6 +184,7 @@ export const stageChange = ({ commit, state }, path) => { ...@@ -184,6 +184,7 @@ export const stageChange = ({ commit, state }, path) => {
const stagedFile = state.stagedFiles.find(f => f.path === path); const stagedFile = state.stagedFiles.find(f => f.path === path);
commit(types.STAGE_CHANGE, path); commit(types.STAGE_CHANGE, path);
commit(types.SET_LAST_COMMIT_MSG, '');
if (stagedFile) { if (stagedFile) {
eventHub.$emit(`editor.update.model.new.content.staged-${stagedFile.key}`, stagedFile.content); eventHub.$emit(`editor.update.model.new.content.staged-${stagedFile.key}`, stagedFile.content);
......
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
display: block; display: block;
position: relative; position: relative;
top: 1px; top: 1px;
right: 3px; right: -2px;
} }
&:not([disabled]):hover { &:not([disabled]):hover {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment