Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GuiΩ
ActivitesMentales_Django
Commits
c851b4cd
Commit
c851b4cd
authored
May 24, 2022
by
GuiΩ
Browse files
fix(QuestionList): open QuestionEditor on dblclick
parent
42566adf
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/components/QuestionList.vue
View file @
c851b4cd
...
...
@@ -138,7 +138,7 @@ export default {
},
onQuestionDblClick
(
event
)
{
this
.
questionSel
=
[
event
.
question_id
];
this
.
$emit
(
'
question-edit
'
,
event
)
},
changePosition
()
{
const
indexSource
=
this
.
dropEvent
.
dataTransfer
.
getData
(
'
index
'
);
...
...
src/components/QuestionListNode.vue
View file @
c851b4cd
...
...
@@ -15,7 +15,7 @@
:src="('../static/thumbs/' + question.thumb_name)"
draggable
@click="onClick($event, question_id)"
@dblclick="onDblClick(question_id)"
@dblclick="onDblClick(
$event,
question_id)"
@dragenter.prevent="onDragOver($event, index)"
@dragover.prevent
@dragleave.prevent="onDragLeave($event, index)"
...
...
@@ -73,6 +73,7 @@ export default {
onDblClick
(
event
,
question_id
){
clearTimeout
(
this
.
clickTimer
);
this
.
nClick
=
0
;
event
.
question_id
=
question_id
;
this
.
$emit
(
'
dblclick
'
,
event
)
},
/**
...
...
Write
Preview
Supports
Markdown
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