Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
epoc-editor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
learninglab
epoc
epoc-editor
Commits
1909fe57
Commit
1909fe57
authored
1 year ago
by
VIAUD Nathan
Browse files
Options
Downloads
Patches
Plain Diff
improvement: replace choice 1/2 by choice left/right for swipe response
parent
30ab695f
No related branches found
No related tags found
1 merge request
!92
Resolve "Replace Choice 1 & Choice 2 by Right & Left for swipe response"
Pipeline
#894071
passed
1 year ago
Stage: build
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/features/forms/components/inputs/RepeatInput.vue
+9
-1
9 additions, 1 deletion
src/features/forms/components/inputs/RepeatInput.vue
src/shared/data/forms/questionsForm.data.ts
+1
-1
1 addition, 1 deletion
src/shared/data/forms/questionsForm.data.ts
with
10 additions
and
2 deletions
src/features/forms/components/inputs/RepeatInput.vue
+
9
−
1
View file @
1909fe57
...
...
@@ -133,6 +133,14 @@ function dragOver(event: DragEvent) {
document
.
body
.
classList
.
add
(
'
cursor-move
'
);
}
// Used to get "choice left/right" on swipe choice
function
getLabelIdentifier
(
index
)
{
if
(
props
.
addButton
===
false
)
{
return
index
===
0
?
'
droite
'
:
'
gauche
'
;
}
else
return
index
+
1
;
}
</
script
>
<
template
>
...
...
@@ -161,7 +169,7 @@ function dragOver(event: DragEvent) {
<div
class=
"form-icon"
><i
:class=
"element.action.icon"
></i></div>
<h3>
{{
element
.
action
.
label
}}
</h3>
</div>
<h3
v-else
>
{{
label
}}
{{
index
+
1
}}
</h3>
<h3
v-else
>
{{
label
}}
{{
getLabelIdentifier
(
index
)
}}
</h3>
<div
v-if=
"addButton !== false"
class=
"card-header-icon"
>
<i
class=
"icon-supprimer delete"
@
click.stop=
"removeCard(index)"
></i>
<hr
v-if=
"!(isLast(index) && index === 0)"
class=
"vertical-separator"
>
...
...
This diff is collapsed.
Click to expand it.
src/shared/data/forms/questionsForm.data.ts
+
1
−
1
View file @
1909fe57
...
...
@@ -317,7 +317,7 @@ export const swipeForm: Form = {
id
:
'
categories
'
,
label
:
'
Choix
'
,
type
:
'
repeat
'
,
value
:
[
'
Gauche
'
,
'
Droit
e
'
],
value
:
[
'
Droite
'
,
'
Gauch
e
'
],
addButton
:
false
,
inputs
:
[
{
...
...
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