[Workshop] Configurator create scenario popup window disappear sometimes

fix: 1. popup window won't be close when user click  background
2.close popup window do cancel function related

Tracked-On: #7991
Signed-off-by: Chuang-Ke <chuangx.ke@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Chuang Ke 2022-08-15 16:11:57 +08:00 committed by acrnsi-robot
parent 2e4a373abb
commit 68a7854052
2 changed files with 4 additions and 2 deletions

View File

@ -1,11 +1,12 @@
<template>
<b-modal title="Board XML overwrite" fade
<b-modal title="Board XML overwrite" fade no-close-on-backdrop
v-model="showModal"
@cancel="cancel"
@abort="cancel"
@close="cancel"
@ok="overWrite"
@submit="overWrite"
@hidden="cancel"
>
<div>
<p><b>Are you sure you want to overwrite the board XML file in this working folder?</b></p>

View File

@ -1,11 +1,12 @@
<template>
<b-modal id="newScenarioModal" size="xl" title="Create a new Scenario" fade
<b-modal id="newScenarioModal" size="xl" title="Create a new Scenario" fade no-close-on-backdrop
v-model="showModal"
@cancel="cancel"
@abort="cancel"
@close="cancel"
@ok="createNewScenario"
@submit="createNewScenario"
@hidden="cancel"
>
<template #header-close>
<Icon @click="cancel">