Skip to content
Snippets Groups Projects
Commit 6af6ca04 authored by Julian's avatar Julian
Browse files

Enable highlight disablement

parent 4a480afb
No related branches found
No related tags found
1 merge request!2Resolve "Implement basic functionality"
...@@ -125,6 +125,7 @@ import NumberCounter from "./components/NumberCounter.vue"; ...@@ -125,6 +125,7 @@ import NumberCounter from "./components/NumberCounter.vue";
context="lesson" context="lesson"
grid-id="lesson-storage" grid-id="lesson-storage"
@itemChanged="handleLessonDropInContainer" @itemChanged="handleLessonDropInContainer"
no-highlight
> >
<template #item="item"> <template #item="item">
<div class="container">{{ item }}</div> <div class="container">{{ item }}</div>
......
...@@ -79,6 +79,11 @@ export default { ...@@ -79,6 +79,11 @@ export default {
required: false, required: false,
default: uuidv4, default: uuidv4,
}, },
noHighlight: {
type: Boolean,
required: false,
default: false,
},
}, },
methods: { methods: {
positionAllowed(x, y, key) { positionAllowed(x, y, key) {
...@@ -108,7 +113,7 @@ export default { ...@@ -108,7 +113,7 @@ export default {
let element = JSON.parse(data); let element = JSON.parse(data);
let coords = this.getCoords(event.layerX, event.layerY); let coords = this.getCoords(event.layerX, event.layerY);
if (element.context !== this.context) { if (element.context !== this.context || this.noHighlight) {
this.$refs.highlightContainer.style.display = "none"; this.$refs.highlightContainer.style.display = "none";
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment