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";
context="lesson"
grid-id="lesson-storage"
@itemChanged="handleLessonDropInContainer"
no-highlight
>
<template #item="item">
<div class="container">{{ item }}</div>
......
......@@ -79,6 +79,11 @@ export default {
required: false,
default: uuidv4,
},
noHighlight: {
type: Boolean,
required: false,
default: false,
},
},
methods: {
positionAllowed(x, y, key) {
......@@ -108,7 +113,7 @@ export default {
let element = JSON.parse(data);
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";
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