diff options
author | Phil Hughes <me@iamphill.com> | 2018-05-04 19:06:33 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-05-04 19:06:33 +0100 |
commit | 442eb843728aaa1ce598f3f4750a6642946036ed (patch) | |
tree | 0ce77887064a52d5ada2016fa387e2421216d187 | |
parent | 5c25ea48c8e01b14c8c09b063c6dc1014e095bd2 (diff) | |
download | gitlab-ce-442eb843728aaa1ce598f3f4750a6642946036ed.tar.gz |
fixed mis-aligned icon
hide success message when staging files
improve action button hover
4 files changed, 6 insertions, 3 deletions
diff --git a/app/assets/javascripts/ide/components/commit_sidebar/list.vue b/app/assets/javascripts/ide/components/commit_sidebar/list.vue index f6625fda596..c3ac18bfb83 100644 --- a/app/assets/javascripts/ide/components/commit_sidebar/list.vue +++ b/app/assets/javascripts/ide/components/commit_sidebar/list.vue @@ -74,6 +74,8 @@ export default { > <header class="multi-file-commit-panel-header" + @mouseenter="setShowActionButton(true)" + @mouseleave="setShowActionButton(false)" > <div class="multi-file-commit-panel-header-title" @@ -86,14 +88,12 @@ export default { {{ titleText }} <span v-show="!showActionButton" - @mouseenter="setShowActionButton(true)" class="ide-commit-file-count" > {{ fileList.length }} </span> <button v-show="showActionButton" - @mouseleave="setShowActionButton(false)" type="button" class="btn btn-blank btn-link ide-staged-action-btn" @click="actionBtnClicked" diff --git a/app/assets/javascripts/ide/stores/actions.js b/app/assets/javascripts/ide/stores/actions.js index 500c158f5b5..1a98b42761e 100644 --- a/app/assets/javascripts/ide/stores/actions.js +++ b/app/assets/javascripts/ide/stores/actions.js @@ -123,6 +123,8 @@ export const scrollToTab = () => { }; export const stageAllChanges = ({ state, commit }) => { + commit(types.SET_LAST_COMMIT_MSG, ''); + state.changedFiles.forEach(file => commit(types.STAGE_CHANGE, file.path)); }; diff --git a/app/assets/javascripts/ide/stores/actions/file.js b/app/assets/javascripts/ide/stores/actions/file.js index fc163cd021a..3ac9b9222ca 100644 --- a/app/assets/javascripts/ide/stores/actions/file.js +++ b/app/assets/javascripts/ide/stores/actions/file.js @@ -184,6 +184,7 @@ export const stageChange = ({ commit, state }, path) => { const stagedFile = state.stagedFiles.find(f => f.path === path); commit(types.STAGE_CHANGE, path); + commit(types.SET_LAST_COMMIT_MSG, ''); if (stagedFile) { eventHub.$emit(`editor.update.model.new.content.staged-${stagedFile.key}`, stagedFile.content); diff --git a/app/assets/stylesheets/pages/repo.scss b/app/assets/stylesheets/pages/repo.scss index c03446d1e40..5e607f261f9 100644 --- a/app/assets/stylesheets/pages/repo.scss +++ b/app/assets/stylesheets/pages/repo.scss @@ -189,7 +189,7 @@ display: block; position: relative; top: 1px; - right: 3px; + right: -2px; } &:not([disabled]):hover { |