Skip to content
Snippets Groups Projects
Commit c9f4602e authored by VIktorGrev's avatar VIktorGrev
Browse files

feat: Adding Confirmastion modal

parent e8e628be
No related branches found
No related tags found
1 merge request!99fix: new OpenAPI spec
Pipeline #284975 failed
<!-- ConfirmationModal.vue -->
<template>
<div class="modal" :id="modalId" tabindex="-1" aria-labelledby="modalLabel" aria-hidden="true"
data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalLabel">{{ title }}</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
{{ message }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{{ cancelButtonText }}</button>
<button type="button" class="btn btn-primary" @click="confirmAction">{{ confirmButtonText }}</button>
</div>
</div>
</div>
</div>
</template>
<script setup>
import { ref } from 'vue';
const modalId = ref(null);
const title = 'Confirm Action';
const message = 'Are you sure you want to proceed?';
const confirmButtonText = 'Confirm';
const cancelButtonText = 'Cancel';
// Methods
function confirmAction() {
emit('confirm');
}
</script>
\ No newline at end of file
......@@ -167,7 +167,7 @@ onMounted(() => {
<hr>
<div>
<h6>Banners</h6>
<div v-if="hasBanners" class="scrolling-wrapper-badges row flex-row flex-nowrap mt-2 pb-2 pt-2">
<div v-if="hasBanners" class="scrolling-wrapper-badges row flex-row flex-wrap mt-2 pb-2 pt-2">
<div v-for="banner in banners" :key="banner.id" class="card text-center banner justify-content-center d-flex align-items-center" @click="selectItem(banner.id)"
:class="{ 'selected-banner': banner.id === selectedBannerId }" data-bs-toggle="tooltip"
data-bs-placement="top" data-bs-custom-class="custom-tooltip" :data-bs-title="banner.criteria">
......
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