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
27b92e2d
Commit
27b92e2d
authored
Feb 02, 2021
by
Rajat Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove feature flag for import requirements
parent
a8d6aa01
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
26 deletions
+2
-26
ee/app/assets/javascripts/requirements/components/requirements_empty_state.vue
...ipts/requirements/components/requirements_empty_state.vue
+0
-6
ee/app/assets/javascripts/requirements/components/requirements_root.vue
...javascripts/requirements/components/requirements_root.vue
+2
-11
ee/app/assets/javascripts/requirements/components/requirements_tabs.vue
...javascripts/requirements/components/requirements_tabs.vue
+0
-7
ee/spec/frontend/requirements/components/requirements_tabs_spec.js
...rontend/requirements/components/requirements_tabs_spec.js
+0
-2
No files found.
ee/app/assets/javascripts/requirements/components/requirements_empty_state.vue
View file @
27b92e2d
...
...
@@ -26,11 +26,6 @@ export default {
type
:
Boolean
,
required
:
true
,
},
showUploadCsv
:
{
type
:
Boolean
,
required
:
false
,
default
:
false
,
},
},
computed
:
{
emptyStateTitle
()
{
...
...
@@ -62,7 +57,6 @@ export default {
__
(
'
New requirement
'
)
}}
</gl-button>
<gl-button
v-if=
"showUploadCsv"
category=
"secondary"
variant=
"default"
@
click=
"$emit('click-import-requirements')"
...
...
ee/app/assets/javascripts/requirements/components/requirements_root.vue
View file @
27b92e2d
...
...
@@ -11,7 +11,6 @@ import { updateHistory, setUrlParams } from '~/lib/utils/url_utility';
import
FilteredSearchBar
from
'
~/vue_shared/components/filtered_search_bar/filtered_search_bar_root.vue
'
;
import
AuthorToken
from
'
~/vue_shared/components/filtered_search_bar/tokens/author_token.vue
'
;
import
{
DEFAULT_LABEL_ANY
}
from
'
~/vue_shared/components/filtered_search_bar/constants
'
;
import
glFeatureFlagsMixin
from
'
~/vue_shared/mixins/gl_feature_flags_mixin
'
;
import
projectRequirements
from
'
../queries/projectRequirements.query.graphql
'
;
import
projectRequirementsCount
from
'
../queries/projectRequirementsCount.query.graphql
'
;
...
...
@@ -47,7 +46,7 @@ export default {
ImportRequirementsModal
,
ExportRequirementsModal
,
},
mixins
:
[
glFeatureFlagsMixin
(),
Tracking
.
mixin
()],
mixins
:
[
Tracking
.
mixin
()],
props
:
{
projectPath
:
{
type
:
String
,
...
...
@@ -633,7 +632,6 @@ export default {
:filter-by=
"filterBy"
:requirements-count=
"requirementsCount"
:show-create-form=
"showRequirementCreateDrawer"
:show-upload-csv=
"glFeatures.importRequirementsCsv"
:can-create-requirement=
"canCreateRequirement"
@
click-tab=
"handleTabClick"
@
click-new-requirement=
"handleNewRequirementClick"
...
...
@@ -674,7 +672,6 @@ export default {
:empty-state-path=
"emptyStatePath"
:requirements-count=
"requirementsCount"
:can-create-requirement=
"canCreateRequirement"
:show-upload-csv=
"glFeatures.importRequirementsCsv"
@
click-new-requirement=
"handleNewRequirementClick"
@
click-import-requirements=
"handleImportRequirementsClick"
/>
...
...
@@ -710,14 +707,8 @@ export default {
class=
"gl-pagination gl-mt-3"
@
input=
"handlePageChange"
/>
<import-requirements-modal
v-if=
"glFeatures.importRequirementsCsv"
ref=
"modal"
:project-path=
"projectPath"
@
import=
"importCsv"
/>
<import-requirements-modal
ref=
"modal"
:project-path=
"projectPath"
@
import=
"importCsv"
/>
<export-requirements-modal
v-if=
"glFeatures.importRequirementsCsv"
ref=
"exportModal"
:requirement-count=
"totalRequirementsForCurrentTab"
:email=
"currentUserEmail"
...
...
ee/app/assets/javascripts/requirements/components/requirements_tabs.vue
View file @
27b92e2d
...
...
@@ -32,11 +32,6 @@ export default {
type
:
Boolean
,
required
:
false
,
},
showUploadCsv
:
{
type
:
Boolean
,
required
:
false
,
default
:
false
,
},
},
computed
:
{
isOpenTab
()
{
...
...
@@ -91,7 +86,6 @@ export default {
<div
v-if=
"isOpenTab && canCreateRequirement"
class=
"nav-controls"
>
<gl-button-group>
<gl-button
v-if=
"showUploadCsv"
v-gl-tooltip
:title=
"__('Export as CSV')"
category=
"secondary"
...
...
@@ -100,7 +94,6 @@ export default {
@
click=
"$emit('click-export-requirements')"
/>
<gl-button
v-if=
"showUploadCsv"
v-gl-tooltip
:title=
"__('Import requirements')"
category=
"secondary"
...
...
ee/spec/frontend/requirements/components/requirements_tabs_spec.js
View file @
27b92e2d
...
...
@@ -11,7 +11,6 @@ const createComponent = ({
requirementsCount
=
mockRequirementsCount
,
showCreateForm
=
false
,
canCreateRequirement
=
true
,
showUploadCsv
=
true
,
}
=
{})
=>
shallowMount
(
RequirementsTabs
,
{
propsData
:
{
...
...
@@ -19,7 +18,6 @@ const createComponent = ({
requirementsCount
,
showCreateForm
,
canCreateRequirement
,
showUploadCsv
,
},
stubs
:
{
GlTabs
,
...
...
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