Commit 5b5d1818 authored by Filipa Lacerda's avatar Filipa Lacerda

Update text and variable case

parent 9c8e6747
......@@ -41,7 +41,7 @@ export default {
return this.mr.sast;
},
shouldRenderDockerReport() {
return this.mr.sast_container;
return this.mr.sastContainer;
},
codequalityText() {
const { newIssues, resolvedIssues } = this.mr.codeclimateMetrics;
......@@ -245,7 +245,7 @@ export default {
},
fetchDockerReport() {
const { path } = this.mr.sast_container;
const { path } = this.mr.sastContainer;
this.isLoadingDocker = true;
this.service.fetchReport(path)
......@@ -340,8 +340,8 @@ export default {
v-if="shouldRenderDockerReport"
type="docker"
:status="dockerStatus"
:loading-text="translateText('sast_container').loading"
:error-text="translateText('sast_container').error"
:loading-text="translateText('sast:container').loading"
:error-text="translateText('sast:container').error"
:success-text="dockerText"
:unresolved-issues="mr.dockerReport.unapproved"
:neutral-issues="mr.dockerReport.approved"
......
......@@ -73,7 +73,7 @@ export default class MergeRequestStore extends CEMergeRequestStore {
}
initDockerReport(data) {
this.sast_container = data.sast_container;
this.sastContainer = data.sast_container;
this.dockerReport = {
approved: [],
unapproved: [],
......
......@@ -115,7 +115,7 @@ describe('MergeRequestStore', () => {
it('sets the defaults', () => {
store.initDockerReport({ sast_container: { path: 'gl-sast-container.json' } });
expect(store.sast_container).toEqual({ path: 'gl-sast-container.json' });
expect(store.sastContainer).toEqual({ path: 'gl-sast-container.json' });
expect(store.dockerReport).toEqual({
approved: [],
unapproved: [],
......
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