Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Privacy
Imprint
Contact
Login methods
Sign in
Toggle navigation
Menu
Open sidebar
Florian Hardy Vogel
cards
Commits
899d6a17
Commit
899d6a17
authored
Nov 18, 2018
by
Curtis Adam
Browse files
Fix a console error related to the card settings modal
parent
ca040483
Changes
1
Hide whitespace changes
Inline
Side-by-side
imports/ui/card/modal/settings.js
View file @
899d6a17
...
...
@@ -14,7 +14,7 @@ import "./settings.html";
Template
.
cardSettingsModal
.
helpers
({
getText
:
function
()
{
if
(
Route
.
isDemo
()
||
Cardsets
.
findOne
({
_id
:
Router
.
current
().
params
.
_id
}).
shuffled
)
{
if
(
Route
.
isDemo
()
||
((
Route
.
isBox
()
||
Route
.
isMemo
())
&&
Cardsets
.
findOne
({
_id
:
Router
.
current
().
params
.
_id
}).
shuffled
)
)
{
if
(
Route
.
isDemo
())
{
CardType
.
gotCardTypesWithSwapAnswerQuestionButton
(
Cardsets
.
findOne
({
name
:
"
DemoCardset
"
,
shuffled
:
true
}).
_id
);
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment