Skip to content

WtSaveFailedPopup

Events

Events:

Name
Params
Description
close-popup

Needed to close popup

save

Fires at "Retry" button inside popup

download

Fires at "Export to JSON" button inside popup

Save failed popup example:

Code
js
<script setup>
import { ref } from 'vue';

import WtSaveFailedPopup from '../../../../../../../../src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue';
// correct way to import popup
// import WtSaveFailedPopup from '@webitel/ui-sdk/src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue';

const isSaveFailedPopup = ref(false);
function close() {
  isSaveFailedPopup.value = false;
}
</script>

<template>
  <wt-button @click="isSaveFailedPopup = true"> Open popup </wt-button>
  <wt-save-failed-popup
    v-if="isSaveFailedPopup"
    @close-popup="close"
  />
</template>

<style scoped lang="scss"></style>