feat: rename Confirmation modal prop displayName to targetName
This commit is contained in:
parent
7cb19adfbe
commit
c9bbd10af1
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
<ModalBase ref="modal" class="confirmation-modal" :obscure="true" :onClose="props.onClose" :onCancel="props.onCancel">
|
<ModalBase ref="modal" class="confirmation-modal" :obscure="true" :onClose="props.onClose" :onCancel="props.onCancel">
|
||||||
<div class="confirmation-modal-body">
|
<div class="confirmation-modal-body">
|
||||||
<div>
|
<div>
|
||||||
<h1 class="confirmation-modal-message">Are you sure you would like to {{ props.actionName.toLowerCase() }} {{ props.displayName }}?</h1>
|
<h1 class="confirmation-modal-message">Are you sure you would like to {{ props.actionName.toLowerCase() }} {{ props.targetName }}?</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="confirmation-modal-buttons">
|
<div class="confirmation-modal-buttons">
|
||||||
<Button :variant="'normal'" :text="'Cancel'" @click="closeModal()" />
|
<Button :variant="'normal'" :text="'Cancel'" @click="closeModal()" />
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import Button from '../UserInterface/Button.vue';
|
import Button from '../UserInterface/Button.vue';
|
||||||
|
|
||||||
const props = defineProps<{ actionName: string, displayName?: string, callback: CallableFunction, onClose: () => void, onCancel: () => void }>();
|
const props = defineProps<{ actionName: string, targetName?: string, callback: CallableFunction, onClose: () => void, onCancel: () => void }>();
|
||||||
|
|
||||||
const modal = ref<{ close: () => void }>();
|
const modal = ref<{ close: () => void }>();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue