Bug 32030: Remove 'add' buttons if no licenses or no other agreements

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-05-16 17:11:50 +02:00 committed by Tomas Cohen Arazi
parent 852d5d5132
commit 8044314bc4
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 4 additions and 2 deletions

View file

@ -96,9 +96,10 @@
</li>
</ol>
</fieldset>
<a class="btn btn-default" @click="addLicense"
<a v-if="licenses.length" class="btn btn-default" @click="addLicense"
><font-awesome-icon icon="plus" /> Add new license</a
>
<span v-else>There are licenses created yet.</span>
</fieldset>
</template>

View file

@ -74,9 +74,10 @@
</li>
</ol>
</fieldset>
<a class="btn btn-default" @click="addRelationship"
<a v-if="agreements.length" class="btn btn-default" @click="addRelationship"
><font-awesome-icon icon="plus" /> Add new related agreement</a
>
<span v-else>There are no other agreements created yet.</span>
</fieldset>
</template>