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
d854f68b
Commit
d854f68b
authored
Apr 09, 2020
by
Nick Kipling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to use GlNewButton
Updated snapshots
parent
b42fd6f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
14 deletions
+11
-14
ee/app/assets/javascripts/packages/list/components/packages_list_row.vue
...avascripts/packages/list/components/packages_list_row.vue
+6
-6
ee/spec/frontend/packages/list/components/__snapshots__/packages_list_row_spec.js.snap
...t/components/__snapshots__/packages_list_row_spec.js.snap
+5
-8
No files found.
ee/app/assets/javascripts/packages/list/components/packages_list_row.vue
View file @
d854f68b
<
script
>
import
PackageTags
from
'
../../shared/components/package_tags.vue
'
;
import
PublishMethod
from
'
./publish_method.vue
'
;
import
{
Gl
Deprecated
Button
,
GlIcon
,
GlLink
,
GlSprintf
,
GlTooltipDirective
}
from
'
@gitlab/ui
'
;
import
{
Gl
New
Button
,
GlIcon
,
GlLink
,
GlSprintf
,
GlTooltipDirective
}
from
'
@gitlab/ui
'
;
import
{
s__
}
from
'
~/locale
'
;
import
{
getPackageType
}
from
'
../../shared/utils
'
;
import
timeagoMixin
from
'
~/vue_shared/mixins/timeago
'
;
...
...
@@ -10,7 +10,7 @@ import { mapState } from 'vuex';
export
default
{
name
:
'
PackagesListRow
'
,
components
:
{
Gl
Deprecated
Button
,
Gl
New
Button
,
GlIcon
,
GlLink
,
GlSprintf
,
...
...
@@ -113,16 +113,16 @@ export default {
</div>
<div
v-if=
"deleteAvailable"
class=
"table-section section-10 d-flex justify-content-end"
>
<gl-
deprecated
-button
<gl-
new
-button
ref=
"action-delete"
icon=
"remove"
category=
"primary"
variant=
"danger"
:title=
"s__('PackageRegistry|Remove package')"
:aria-label=
"s__('PackageRegistry|Remove package')"
:disabled=
"!packageEntity._links.delete_api_path"
@
click=
"$emit('packageToDelete', packageEntity)"
>
<gl-icon
name=
"remove"
/>
</gl-deprecated-button>
/>
</div>
</div>
</template>
ee/spec/frontend/packages/list/components/__snapshots__/packages_list_row_spec.js.snap
View file @
d854f68b
...
...
@@ -80,17 +80,14 @@ exports[`packages_list_row renders 1`] = `
<div
class="table-section section-10 d-flex justify-content-end"
>
<gl-
deprecated
-button-stub
<gl-
new
-button-stub
aria-label="Remove package"
size="md"
category="primary"
icon="remove"
size="medium"
title="Remove package"
variant="danger"
>
<gl-icon-stub
name="remove"
size="16"
/>
</gl-deprecated-button-stub>
/>
</div>
</div>
`;
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