Skip to content
Snippets Groups Projects
Commit bf3cb85b authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Merge branch 'disable-element-type-select' into 'master'

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

Closes #943

See merge request !1233
parents 7293270e ff7b2cb3
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