Commit 3df62006 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'remove-check-sourceBranchProtected-for-showResolveButton' into 'master'

Removes the check for sourceBranchProtected

See merge request gitlab-org/gitlab!82984
parents 61660523 2bf42515
......@@ -82,17 +82,8 @@ export default {
return this.mr.shouldBeRebased;
},
sourceBranchProtected() {
if (this.glFeatures.mergeRequestWidgetGraphql) {
return this.stateData.sourceBranchProtected;
}
return this.mr.sourceBranchProtected;
},
showResolveButton() {
return (
this.mr.conflictResolutionPath && this.canPushToSourceBranch && !this.sourceBranchProtected
);
return this.mr.conflictResolutionPath && this.canPushToSourceBranch;
},
},
};
......
......@@ -224,8 +224,8 @@ describe('MRWidgetConflicts', () => {
});
});
it('should not allow you to resolve the conflicts', () => {
expect(findResolveButton().exists()).toBe(false);
it('should allow you to resolve the conflicts', () => {
expect(findResolveButton().exists()).toBe(true);
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment