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
e0ed3bea
Commit
e0ed3bea
authored
Jul 28, 2020
by
Nicolò Maria Mezzopera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swap deprecated button for new button
- packages app - unit tests
parent
313b826d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
app/assets/javascripts/packages/details/components/app.vue
app/assets/javascripts/packages/details/components/app.vue
+11
-7
spec/frontend/packages/details/components/app_spec.js
spec/frontend/packages/details/components/app_spec.js
+1
-1
No files found.
app/assets/javascripts/packages/details/components/app.vue
View file @
e0ed3bea
<
script
>
import
{
GlBadge
,
Gl
Deprecated
Button
,
GlButton
,
GlIcon
,
GlModal
,
GlModalDirective
,
...
...
@@ -37,7 +37,7 @@ export default {
name
:
'
PackagesApp
'
,
components
:
{
GlBadge
,
Gl
Deprecated
Button
,
GlButton
,
GlEmptyState
,
GlLink
,
GlModal
,
...
...
@@ -204,14 +204,16 @@ export default {
<package-title
/>
<div
class=
"mt-sm-2"
>
<gl-
deprecated-
button
<gl-button
v-if=
"canDeletePackage"
v-gl-modal=
"'delete-modal'"
class=
"js-delete-button"
variant=
"danger"
category=
"primary"
data-qa-selector=
"delete_button"
>
{{
__
(
'
Delete
'
)
}}
</gl-deprecated-button
>
{{
__
(
'
Delete
'
)
}}
</gl-button>
</div>
</div>
...
...
@@ -326,16 +328,18 @@ export default {
<div
slot=
"modal-footer"
class=
"w-100"
>
<div
class=
"float-right"
>
<gl-
deprecated-button
@
click=
"cancelDelete()"
>
{{ __('Cancel') }}
</gl-deprecated
-button>
<gl-
deprecated-
button
<gl-
button
@
click=
"cancelDelete()"
>
{{ __('Cancel') }}
</gl
-button>
<gl-button
ref=
"modal-delete-button"
data-method=
"delete"
:to=
"destroyPath"
variant=
"danger"
category=
"primary"
data-qa-selector=
"delete_modal_button"
@
click=
"track($options.trackingActions.DELETE_PACKAGE)"
>
{{ __('Delete') }}
</gl-deprecated-button
>
{{ __('Delete') }}
</gl-button>
</div>
</div>
</gl-modal>
...
...
spec/frontend/packages/details/components/app_spec.js
View file @
e0ed3bea
...
...
@@ -62,7 +62,7 @@ describe('PackagesApp', () => {
store
,
stubs
:
{
...
stubChildren
(
PackagesApp
),
Gl
Deprecated
Button
:
false
,
GlButton
:
false
,
GlModal
:
false
,
GlTab
:
false
,
GlTabs
:
false
,
...
...
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