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
b3aac465
Commit
b3aac465
authored
Sep 17, 2020
by
Kyle Mann
Committed by
Mark Florian
Sep 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced deprecated dropdown
parent
d0a9c76c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
18 deletions
+22
-18
ee/app/assets/javascripts/licenses/components/cards/license_card.vue
...ts/javascripts/licenses/components/cards/license_card.vue
+9
-14
ee/spec/frontend/licenses/components/cards/__snapshots__/license_card_spec.js.snap
.../components/cards/__snapshots__/license_card_spec.js.snap
+13
-4
No files found.
ee/app/assets/javascripts/licenses/components/cards/license_card.vue
View file @
b3aac465
<
script
>
import
{
mapState
,
mapActions
}
from
'
vuex
'
;
import
{
GlD
eprecatedDropdown
,
GlDeprecated
DropdownItem
}
from
'
@gitlab/ui
'
;
import
{
GlD
ropdown
,
Gl
DropdownItem
}
from
'
@gitlab/ui
'
;
import
{
capitalizeFirstCharacter
}
from
'
~/lib/utils/text_utility
'
;
import
{
__
}
from
'
~/locale
'
;
import
LicenseCardBody
from
'
./license_card_body.vue
'
;
...
...
@@ -9,8 +9,8 @@ export default {
name
:
'
LicenseCard
'
,
components
:
{
LicenseCardBody
,
GlD
eprecatedD
ropdown
,
GlD
eprecatedD
ropdownItem
,
GlDropdown
,
GlDropdownItem
,
},
props
:
{
license
:
{
...
...
@@ -55,26 +55,21 @@ export default {
}}
<
/h4
>
<
gl
-
deprecated
-
dropdown
right
class
=
"
js-manage-license
"
:
text
=
"
__('Manage')
"
:
disabled
=
"
isRemoving
"
>
<
gl
-
deprecated
-
dropdown
-
item
<
gl
-
dropdown
right
class
=
"
js-manage-license
"
:
text
=
"
__('Manage')
"
:
disabled
=
"
isRemoving
"
>
<
gl
-
dropdown
-
item
v
-
if
=
"
isCurrentLicense
"
class
=
"
js-download-license
"
:
href
=
"
downloadLicensePath
"
>
{{
__
(
'
Download license
'
)
}}
<
/gl-d
eprecated-d
ropdown-item
>
<
gl
-
d
eprecated
-
d
ropdown
-
item
<
/gl-dropdown-item
>
<
gl
-
dropdown
-
item
class
=
"
js-delete-license text-danger
"
@
click
=
"
confirmDeleteLicense(license)
"
>
{{
__
(
'
Delete license
'
)
}}
<
/gl-d
eprecated-d
ropdown-item
>
<
/gl-d
eprecated-d
ropdown
>
<
/gl-dropdown-item
>
<
/gl-dropdown
>
<
/div
>
<
/div
>
...
...
ee/spec/frontend/licenses/components/cards/__snapshots__/license_card_spec.js.snap
View file @
b3aac465
...
...
@@ -16,21 +16,30 @@ exports[`LicenseCard renders license card with a delete button and license body
</h4>
<gl-deprecated-dropdown-stub
<gl-dropdown-stub
category="tertiary"
class="js-manage-license"
headertext=""
right=""
size="medium"
text="Manage"
variant="default"
>
<!---->
<gl-deprecated-dropdown-item-stub
<gl-dropdown-item-stub
avatarurl=""
class="js-delete-license text-danger"
iconcolor=""
iconname=""
iconrightname=""
secondarytext=""
>
Delete license
</gl-d
eprecated-d
ropdown-item-stub>
</gl-d
eprecated-d
ropdown-stub>
</gl-dropdown-item-stub>
</gl-dropdown-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