Skip to content
Snippets Groups Projects
Commit ff7b2cb3 authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

disable element type select when not using an element creation tool in batch creation mode

parent 7293270e
No related branches found
No related tags found
1 merge request!1233disable element type select when not using an element creation tool in batch creation mode
......@@ -25,7 +25,9 @@
/>
<label for="switchBatchCreation">Enable batch creation (no prompt)</label>
</span>
</fieldset>
<fieldset :disabled="elementTypeSelectDisabled" :title="elementTypeSelectDisabled ? 'Element type selection is only available for element creation tools.' : ''">
<div class="field mt-2">
<label class="label">Element type</label>
<div class="control">
......@@ -87,6 +89,12 @@ export default {
batchFormDisabled () {
return !['rectangle', 'polygon', 'deletion'].includes(this.tool)
},
/**
* Disable the element type selection dropdown if not using an element creation tool.
*/
elementTypeSelectDisabled () {
return !['rectangle', 'polygon'].includes(this.tool)
},
batchCreation: {
get () {
return this.$store.state.annotation.batchCreation
......
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