Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
beb1d5ae
Commit
beb1d5ae
authored
Aug 09, 2021
by
Michael Le
Committed by
Natalia Tepluhina
Aug 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change discard changes button to be icon button
parent
62864aa6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
app/assets/javascripts/ide/components/commit_sidebar/list.vue
...assets/javascripts/ide/components/commit_sidebar/list.vue
+7
-8
No files found.
app/assets/javascripts/ide/components/commit_sidebar/list.vue
View file @
beb1d5ae
<
script
>
import
{
Gl
Modal
,
GlIcon
,
GlTooltipDirective
}
from
'
@gitlab/ui
'
;
import
{
Gl
Button
,
GlModal
,
GlTooltipDirective
}
from
'
@gitlab/ui
'
;
import
{
mapActions
}
from
'
vuex
'
;
import
{
__
,
sprintf
}
from
'
~/locale
'
;
import
ListItem
from
'
./list_item.vue
'
;
export
default
{
components
:
{
Gl
Ic
on
,
Gl
Butt
on
,
ListItem
,
GlModal
,
},
...
...
@@ -70,7 +70,7 @@ export default {
<div
class=
"d-flex align-items-center flex-fill"
>
<strong>
{{
titleText
}}
</strong>
<div
class=
"d-flex ml-auto"
>
<button
<
gl-
button
v-if=
"!stagedList"
v-gl-tooltip
:title=
"__('Discard all changes')"
...
...
@@ -79,15 +79,14 @@ export default {
:class=
"
{
'disabled-content': !filesLength,
}"
type="button"
class="d-flex ide-staged-action-btn p-0 border-0 align-items-center"
class="gl-shadow-none!"
category="tertiary"
icon="remove-all"
data-placement="bottom"
data-container="body"
data-boundary="viewport"
@click="openDiscardModal"
>
<gl-icon
:size=
"16"
name=
"remove-all"
class=
"ml-auto mr-auto position-top-0"
/>
</button>
/>
</div>
</div>
</header>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment