Disable move button in move content modal if there's no target selected [SCI-9278]

This commit is contained in:
Martin Artnik 2023-09-08 16:26:29 +02:00
parent d2c0e3dca2
commit f0c77b4e7d

View file

@ -1,5 +1,5 @@
<template>
<div ref="modal" @keydown.esc="cancel" class="modal" id="modalDestroyProtocolContent" tabindex="-1" role="dialog">
<div ref="modal" @keydown.esc="cancel" class="modal" id="modalMoveProtocolContent" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
@ -38,7 +38,7 @@
</div>
<div class="modal-footer">
<button class="btn btn-secondary" @click="cancel">{{ i18n.t('general.cancel') }}</button>
<button class="btn btn-primary" @click="confirm">{{ i18n.t('general.move')}}</button>
<button class="btn btn-primary" @click="confirm" :disabled="!target">{{ i18n.t('general.move')}}</button>
</div>
</div>
</div>