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

Update text and variable case

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