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
5c356b7a
Commit
5c356b7a
authored
Apr 13, 2021
by
Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename corpus_upload_modal to corpus_upload form
* Rename component, update specs
parent
a2667b22
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
ee/app/assets/javascripts/security_configuration/corpus_management/components/corpus_upload.vue
...figuration/corpus_management/components/corpus_upload.vue
+3
-3
ee/app/assets/javascripts/security_configuration/corpus_management/components/corpus_upload_form.vue
...ation/corpus_management/components/corpus_upload_form.vue
+0
-0
ee/spec/frontend/security_configuration/corpus_management/components/__snapshots__/corpus_upload_form_spec.js.snap
.../components/__snapshots__/corpus_upload_form_spec.js.snap
+0
-0
ee/spec/frontend/security_configuration/corpus_management/components/__snapshots__/corpus_upload_spec.js.snap
...ement/components/__snapshots__/corpus_upload_spec.js.snap
+1
-1
ee/spec/frontend/security_configuration/corpus_management/components/corpus_upload_form_spec.js
...n/corpus_management/components/corpus_upload_form_spec.js
+2
-2
No files found.
ee/app/assets/javascripts/security_configuration/corpus_management/components/corpus_upload.vue
View file @
5c356b7a
<
script
>
import
{
GlButton
,
GlModal
,
GlModalDirective
}
from
'
@gitlab/ui
'
;
import
CorpusUpload
Modal
from
'
ee/security_configuration/corpus_management/components/corpus_upload_modal
.vue
'
;
import
CorpusUpload
Form
from
'
ee/security_configuration/corpus_management/components/corpus_upload_form
.vue
'
;
import
{
numberToHumanSize
}
from
'
~/lib/utils/number_utils
'
;
import
{
s__
}
from
'
~/locale
'
;
import
addCorpusMutation
from
'
../graphql/mutations/add_corpus.mutation.graphql
'
;
...
...
@@ -11,7 +11,7 @@ export default {
components
:
{
GlButton
,
GlModal
,
CorpusUpload
Modal
,
CorpusUpload
Form
,
},
directives
:
{
GlModalDirective
,
...
...
@@ -107,7 +107,7 @@ export default {
@
primary=
"addCorpus"
@
canceled=
"resetCorpus"
>
<corpus-upload-
modal
/>
<corpus-upload-
form
/>
</gl-modal>
</div>
</
template
>
ee/app/assets/javascripts/security_configuration/corpus_management/components/corpus_upload_
modal
.vue
→
ee/app/assets/javascripts/security_configuration/corpus_management/components/corpus_upload_
form
.vue
View file @
5c356b7a
File moved
ee/spec/frontend/security_configuration/corpus_management/components/__snapshots__/corpus_upload_
modal
_spec.js.snap
→
ee/spec/frontend/security_configuration/corpus_management/components/__snapshots__/corpus_upload_
form
_spec.js.snap
View file @
5c356b7a
File moved
ee/spec/frontend/security_configuration/corpus_management/components/__snapshots__/corpus_upload_spec.js.snap
View file @
5c356b7a
...
...
@@ -42,7 +42,7 @@ exports[`Corpus Upload component renders header 1`] = `
title="New corpus"
titletag="h4"
>
<corpus-upload-
modal
-stub />
<corpus-upload-
form
-stub />
</gl-modal-stub>
</div>
`;
ee/spec/frontend/security_configuration/corpus_management/components/corpus_upload_
modal
_spec.js
→
ee/spec/frontend/security_configuration/corpus_management/components/corpus_upload_
form
_spec.js
View file @
5c356b7a
import
{
createLocalVue
,
mount
}
from
'
@vue/test-utils
'
;
import
VueApollo
from
'
vue-apollo
'
;
import
CorpusUpload
Modal
from
'
ee/security_configuration/corpus_management/components/corpus_upload_modal
.vue
'
;
import
CorpusUpload
Form
from
'
ee/security_configuration/corpus_management/components/corpus_upload_form
.vue
'
;
import
createMockApollo
from
'
helpers/mock_apollo_helper
'
;
import
waitForPromises
from
'
helpers/wait_for_promises
'
;
...
...
@@ -51,7 +51,7 @@ describe('Corpus upload modal', () => {
}
const
createComponent
=
(
resolverMock
,
options
=
{})
=>
{
wrapper
=
mount
(
CorpusUpload
Modal
,
{
wrapper
=
mount
(
CorpusUpload
Form
,
{
localVue
,
apolloProvider
:
createMockApolloProvider
(
resolverMock
),
provide
:
{
...
...
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