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
196f5f53
Commit
196f5f53
authored
Jul 15, 2020
by
mfluharty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use $options for loadingText and errorText
In grouped codequality reports app
parent
d50f0080
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
app/assets/javascripts/reports/codequality_report/grouped_codequality_reports_app.vue
...ts/codequality_report/grouped_codequality_reports_app.vue
+9
-10
No files found.
app/assets/javascripts/reports/codequality_report/grouped_codequality_reports_app.vue
View file @
196f5f53
<
script
>
import
{
mapState
,
mapActions
,
mapGetters
}
from
'
vuex
'
;
import
{
componentNames
}
from
'
~/reports/components/issue_body
'
;
import
{
s__
,
sprintf
}
from
'
~/locale
'
;
import
ReportSection
from
'
~/reports/components/report_section.vue
'
;
import
createStore
from
'
./store
'
;
...
...
@@ -58,21 +59,19 @@ export default {
methods
:
{
...
mapActions
([
'
fetchReports
'
,
'
setPaths
'
]),
},
loadingText
:
sprintf
(
s__
(
'
ciReport|Loading %{reportName} report
'
),
{
reportName
:
'
codeclimate
'
,
}),
errorText
:
sprintf
(
s__
(
'
ciReport|Failed to load %{reportName} report
'
),
{
reportName
:
'
codeclimate
'
,
}),
};
</
script
>
<
template
>
<report-section
:status=
"codequalityStatus"
:loading-text=
"
sprintf(s__('ciReport|Loading %
{reportName} report'), {
reportName: 'codeclimate',
})
"
:error-text="
sprintf(s__('ciReport|Failed to load %{reportName} report'), {
reportName: 'codeclimate',
})
"
:loading-text=
"$options.loadingText"
:error-text=
"$options.errorText"
:success-text=
"codequalityText"
:unresolved-issues=
"newIssues"
:resolved-issues=
"resolvedIssues"
...
...
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