diff --git a/resources/assets/js/label-trees/components/labelTree.vue b/resources/assets/js/label-trees/components/labelTree.vue
index 728f41c36..b75915312 100644
--- a/resources/assets/js/label-trees/components/labelTree.vue
+++ b/resources/assets/js/label-trees/components/labelTree.vue
@@ -8,7 +8,7 @@
{{name}}
@@ -85,6 +85,11 @@ export default {
type: Boolean,
default: false,
},
+ // Indicates whether shortcuts of favourites are shown.
+ showFavouriteShortcuts: {
+ type: Boolean,
+ default: false,
+ },
},
computed: {
labelMap() {
diff --git a/resources/assets/js/label-trees/components/labelTreeLabel.vue b/resources/assets/js/label-trees/components/labelTreeLabel.vue
index 6d613cdd1..c97c5ee30 100644
--- a/resources/assets/js/label-trees/components/labelTreeLabel.vue
+++ b/resources/assets/js/label-trees/components/labelTreeLabel.vue
@@ -12,8 +12,12 @@
+
+
+
+
@@ -65,6 +69,14 @@ export default {
type: Boolean,
default: false,
},
+ showFavouriteShortcuts: {
+ type: Boolean,
+ default: false,
+ },
+ position:{
+ type: Number,
+ default:-1,
+ },
},
computed: {
showColor() {
@@ -113,6 +125,9 @@ export default {
showEditButton() {
return this.editable && this.hover && !this.editing;
},
+ actualPosition(){
+ return this.position + 1
+ }
},
methods: {
toggleSelect(e) {
diff --git a/resources/assets/js/label-trees/components/labelTrees.vue b/resources/assets/js/label-trees/components/labelTrees.vue
index f1333adb7..ce0724502 100644
--- a/resources/assets/js/label-trees/components/labelTrees.vue
+++ b/resources/assets/js/label-trees/components/labelTrees.vue
@@ -5,7 +5,7 @@
-
+
diff --git a/resources/assets/sass/label-trees/components/_labelTreeLabel.scss b/resources/assets/sass/label-trees/components/_labelTreeLabel.scss
index 88bf37b78..30827c659 100644
--- a/resources/assets/sass/label-trees/components/_labelTreeLabel.scss
+++ b/resources/assets/sass/label-trees/components/_labelTreeLabel.scss
@@ -100,4 +100,8 @@
}
}
+ .label-tree-label_position {
+ pointer-events: none;
+ }
+
}