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
02e3a6e0
Commit
02e3a6e0
authored
Jul 02, 2020
by
clenneville
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated deprecated button
parent
9937adfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
ee/app/assets/javascripts/feature_flags/components/feature_flags_table.vue
...ascripts/feature_flags/components/feature_flags_table.vue
+10
-7
No files found.
ee/app/assets/javascripts/feature_flags/components/feature_flags_table.vue
View file @
02e3a6e0
<
script
>
import
{
escape
}
from
'
lodash
'
;
import
{
Gl
Deprecated
Button
,
GlTooltipDirective
,
GlModal
,
GlToggle
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
GlButton
,
GlTooltipDirective
,
GlModal
,
GlToggle
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
sprintf
,
s__
}
from
'
~/locale
'
;
import
glFeatureFlagMixin
from
'
~/vue_shared/mixins/gl_feature_flags_mixin
'
;
import
{
ROLLOUT_STRATEGY_PERCENT_ROLLOUT
,
NEW_VERSION_FLAG
}
from
'
../constants
'
;
export
default
{
components
:
{
Gl
Deprecated
Button
,
GlButton
,
GlIcon
,
GlModal
,
GlToggle
,
...
...
@@ -198,25 +198,27 @@ export default {
<div
class=
"table-section section-20 table-button-footer"
role=
"gridcell"
>
<div
class=
"table-action-buttons btn-group"
>
<template
v-if=
"featureFlag.edit_path"
>
<gl-
deprecated-
button
<gl-button
v-gl-tooltip.hover.bottom=
"__('Edit')"
class=
"js-feature-flag-edit-button"
variant=
"outline-primary"
variant=
"info"
category=
"secondary"
:href=
"featureFlag.edit_path"
>
<gl-icon
name=
"pencil"
:size=
"16"
/>
</gl-
deprecated-
button>
</gl-button>
</
template
>
<
template
v-if=
"featureFlag.destroy_path"
>
<gl-
deprecated-
button
<gl-button
v-gl-tooltip.hover.bottom=
"__('Delete')"
class=
"js-feature-flag-delete-button"
variant=
"danger"
category=
"primary"
:disabled=
"!canDeleteFlag(featureFlag)"
@
click=
"setDeleteModalData(featureFlag)"
>
<gl-icon
name=
"remove"
:size=
"16"
/>
</gl-
deprecated-
button>
</gl-button>
</
template
>
</div>
</div>
...
...
@@ -230,6 +232,7 @@ export default {
:modal-id=
"modalId"
title-tag=
"h4"
ok-variant=
"danger"
category=
"primary"
@
ok=
"onSubmit"
>
{{ deleteModalMessage }}
...
...
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