Prevent empty name subplots

This commit is contained in:
Matthias 2021-11-03 06:51:38 +01:00
parent 84c61551a0
commit 4853e19899

View File

@ -15,7 +15,7 @@
<b-input-group size="sm"> <b-input-group size="sm">
<b-form-input id="newSubPlot" v-model="newSubplotName" class="addPlot"></b-form-input> <b-form-input id="newSubPlot" v-model="newSubplotName" class="addPlot"></b-form-input>
<b-input-group-append> <b-input-group-append>
<b-button @click="addSubplot">+</b-button> <b-button :disabled="!newSubplotName" @click="addSubplot">+</b-button>
<b-button v-if="selSubPlot && selSubPlot != 'main_plot'" @click="delSubplot">-</b-button> <b-button v-if="selSubPlot && selSubPlot != 'main_plot'" @click="delSubplot">-</b-button>
</b-input-group-append> </b-input-group-append>
</b-input-group> </b-input-group>