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
58a44b27
Commit
58a44b27
authored
May 27, 2021
by
Angelo Gulina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trim the value from the input
parent
11a4bfc7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ee/app/assets/javascripts/pages/admin/cloud_licenses/components/subscription_activation_form.vue
...loud_licenses/components/subscription_activation_form.vue
+1
-1
ee/spec/frontend/admin/cloud_licenses/components/subscription_activation_form_spec.js
..._licenses/components/subscription_activation_form_spec.js
+3
-2
No files found.
ee/app/assets/javascripts/pages/admin/cloud_licenses/components/subscription_activation_form.vue
View file @
58a44b27
...
@@ -131,7 +131,7 @@ export default {
...
@@ -131,7 +131,7 @@ export default {
</label>
</label>
<gl-form-input
<gl-form-input
id=
"activation-code-group"
id=
"activation-code-group"
v-model=
"form.fields.activationCode.value"
v-model
.trim
=
"form.fields.activationCode.value"
v-validation:
[
form
.
showValidation
]
v-validation:
[
form
.
showValidation
]
:disabled=
"isLoading"
:disabled=
"isLoading"
:placeholder=
"$options.i18n.pasteActivationCode"
:placeholder=
"$options.i18n.pasteActivationCode"
...
...
ee/spec/frontend/admin/cloud_licenses/components/subscription_activation_form_spec.js
View file @
58a44b27
...
@@ -22,7 +22,8 @@ localVue.use(VueApollo);
...
@@ -22,7 +22,8 @@ localVue.use(VueApollo);
describe
(
'
CloudLicenseApp
'
,
()
=>
{
describe
(
'
CloudLicenseApp
'
,
()
=>
{
let
wrapper
;
let
wrapper
;
const
fakeActivationCode
=
'
gEg959hDCkvM2d4Der5RyktT
'
;
const
fakeActivationCode
=
'
gEg959hDCkvM2d4Der5RyktT
'
;
const
fakeActivationCodeTrimmed
=
'
gEg959hDCkvM2d4Der5RyktT
'
;
const
createMockApolloProvider
=
(
resolverMock
)
=>
{
const
createMockApolloProvider
=
(
resolverMock
)
=>
{
localVue
.
use
(
VueApollo
);
localVue
.
use
(
VueApollo
);
...
@@ -133,7 +134,7 @@ describe('CloudLicenseApp', () => {
...
@@ -133,7 +134,7 @@ describe('CloudLicenseApp', () => {
it
(
'
calls mutate with the correct variables
'
,
()
=>
{
it
(
'
calls mutate with the correct variables
'
,
()
=>
{
expect
(
mutationMock
).
toHaveBeenCalledWith
({
expect
(
mutationMock
).
toHaveBeenCalledWith
({
gitlabSubscriptionActivateInput
:
{
gitlabSubscriptionActivateInput
:
{
activationCode
:
fakeActivationCode
,
activationCode
:
fakeActivationCode
Trimmed
,
},
},
});
});
});
});
...
...
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