Browse Source

feat: overlaypopup on page load

dashboard-layout
ken 7 months ago
parent
commit
b070776dfe
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      gca-admin-gurusoft-message-dashboard/src/components/OverlayPopup.vue

+ 6
- 2
gca-admin-gurusoft-message-dashboard/src/components/OverlayPopup.vue View File

@ -5,7 +5,7 @@
</button>
<!-- Modal -->
<div class="modal" id="overlayPopup" tabindex="-1" aria-hidden="true">
<div class="modal" id="overlayPopup" tabindex="-1" aria-hidden="true" ref="overlayPopup">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content rounded-0">
<div class="modal-header justify-content-center text-center w-100 border-0">
@ -33,11 +33,15 @@
import {ref, onMounted} from 'vue';
import {initializeApi} from '@/utils/api';
const overlayPopup = ref(null)
const overlayInfo = ref({})
const api = initializeApi();
const overlayInfo = ref({});
onMounted(async () => {
overlayInfo.value = await api.getOverlayPopup();
const modalInstance = new bootstrap.Modal(overlayPopup.value)
modalInstance.show()
});
</script>

Loading…
Cancel
Save