Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
e6cd5431
Commit
e6cd5431
authored
9 years ago
by
Tom Robinson
Browse files
Options
Downloads
Patches
Plain Diff
Use dashboard_count in DeleteQuestionModal
parent
85c7d6ae
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/frontend_client/app/components/DeleteQuestionModal.react.js
+7
-4
7 additions, 4 deletions
...ontend_client/app/components/DeleteQuestionModal.react.js
with
7 additions
and
4 deletions
resources/frontend_client/app/components/DeleteQuestionModal.react.js
+
7
−
4
View file @
e6cd5431
...
...
@@ -4,7 +4,8 @@ import FormField from "metabase/components/FormField.react";
import
Icon
from
"
metabase/components/Icon.react
"
;
import
Modal
from
'
metabase/components/Modal.react
'
;
var
cx
=
React
.
addons
.
classSet
;
import
inflection
from
"
inflection
"
;
import
cx
from
"
classnames
"
;
export
default
React
.
createClass
({
displayName
:
"
DeleteQuestionModal
"
,
...
...
@@ -43,6 +44,8 @@ export default React.createClass({
);
}
var
dashboardCount
=
this
.
props
.
card
.
dashboard_count
+
"
"
+
inflection
.
inflect
(
"
dashboard
"
,
this
.
props
.
card
.
dashboard_count
);
return
(
<
Modal
title
=
"
Delete Question
"
...
...
@@ -50,10 +53,10 @@ export default React.createClass({
>
<
div
className
=
"
Form-inputs mb4
"
>
<
p
>
Are
you
sure
you
want
to
do
this
?
<
/p
>
<
p
>
This
question
will
be
deleted
from
Metabase
,
and
will
also
be
removed
from
:
<
/p
>
<
p
>
This
question
will
be
deleted
from
Metabase
,
and
will
also
be
removed
from
:
/p
>
<
ul
>
<
li
>
3
dashboard
s
<
/li
>
<
li
>
1
email
report
<
/li
>
<
li
>
{
dashboard
Count
}
<
/li
>
<
li
>
0
email
report
s
<
/li
>
<
/ul
>
<
/div
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment