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
18bc3de5
Commit
18bc3de5
authored
Jul 01, 2020
by
Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update pot file translations
* Resolve merge conflict
parent
646522cc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
23 deletions
+19
-23
ee/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_policy_violation.vue
...t_widget/components/states/mr_widget_policy_violation.vue
+4
-4
ee/app/assets/javascripts/vue_shared/license_compliance/store/actions.js
...avascripts/vue_shared/license_compliance/store/actions.js
+4
-6
ee/app/assets/javascripts/vue_shared/license_compliance/store/getters.js
...avascripts/vue_shared/license_compliance/store/getters.js
+2
-2
ee/spec/frontend/vue_mr_widget/components/states/mr_widget_policy_violation_spec.js
...dget/components/states/mr_widget_policy_violation_spec.js
+9
-11
No files found.
ee/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_policy_violation.vue
View file @
18bc3de5
...
...
@@ -12,14 +12,14 @@ export default {
<div
class=
"mr-widget-body media"
>
<div
class=
"space-children"
>
<status-icon
status=
"warning"
/>
<
button
type=
"button"
class=
"btn btn-success btn-sm"
disabled=
"true
"
>
<
gl-button
category=
"primary"
variant=
"success"
disabled=
"disabled"
size=
"small
"
>
{{
s__
(
'
mrWidget|Merge
'
)
}}
</button>
</
gl-
button>
</div>
<div
class=
"media-body"
>
<s
pan
class=
"bold"
>
<s
trong
>
{{
s__
(
'
mrWidget|You can only merge once the denied license is removed
'
)
}}
</s
pan
>
</s
trong
>
</div>
</div>
</
template
>
ee/app/assets/javascripts/vue_shared/license_compliance/store/actions.js
View file @
18bc3de5
...
...
@@ -114,14 +114,12 @@ export const receiveSetLicenseApprovalError = ({ commit }, error) => {
export
const
fetchLicenseCheckApprovalRule
=
({
dispatch
,
state
})
=>
{
dispatch
(
'
requestLicenseCheckApprovalRule
'
);
axios
return
axios
.
get
(
state
.
approvalsApiPath
)
.
then
(({
data
})
=>
{
const
hasLicenseCheckApprovalRule
=
Boolean
(
data
.
approval_rules_left
.
find
(
rule
=>
{
return
rule
.
name
===
'
License-Check
'
;
}),
);
const
hasLicenseCheckApprovalRule
=
data
.
approval_rules_left
.
some
(
rule
=>
{
return
rule
.
name
===
'
License-Check
'
;
});
dispatch
(
'
receiveLicenseCheckApprovalRuleSuccess
'
,
{
hasLicenseCheckApprovalRule
});
})
...
...
ee/app/assets/javascripts/vue_shared/license_compliance/store/getters.js
View file @
18bc3de5
...
...
@@ -21,11 +21,11 @@ export const licenseReportGroups = state =>
);
export
const
hasReportItems
=
(
_
,
getters
)
=>
{
return
getters
.
licenseReport
&&
getters
.
licenseReport
.
length
;
return
Boolean
(
getters
.
licenseReport
&&
getters
.
licenseReport
.
length
)
;
};
export
const
baseReportHasLicenses
=
state
=>
{
return
state
.
existingLicenses
.
length
;
return
Boolean
(
state
.
existingLicenses
.
length
)
;
};
export
const
licenseReportLength
=
(
_
,
getters
)
=>
{
...
...
ee/spec/frontend/vue_mr_widget/components/states/mr_widget_policy_violation_spec.js
View file @
18bc3de5
...
...
@@ -15,18 +15,16 @@ describe('EE MrWidgetPolicyViolation', () => {
wrapper
=
null
;
});
describe
(
'
when shown
'
,
()
=>
{
beforeEach
(()
=>
{
createComponent
();
});
beforeEach
(()
=>
{
createComponent
();
});
it
(
'
shows the disabled merge button
'
,
()
=>
{
expect
(
wrapper
.
text
()).
toContain
(
'
Merge
'
);
expect
(
findButton
().
attributes
().
disabled
).
toBe
(
'
disabled
'
);
});
it
(
'
shows the disabled merge button
'
,
()
=>
{
expect
(
wrapper
.
text
()).
toContain
(
'
Merge
'
);
expect
(
findButton
().
attributes
().
disabled
).
toBe
(
'
disabled
'
);
});
it
(
'
shows the disabled reason
'
,
()
=>
{
expect
(
wrapper
.
text
()).
toContain
(
'
You can only merge once the denied license is removed
'
);
});
it
(
'
shows the disabled reason
'
,
()
=>
{
expect
(
wrapper
.
text
()).
toContain
(
'
You can only merge once the denied license is removed
'
);
});
});
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