Make additional modal backdrops transparent

This commit is contained in:
Jiiks 2018-02-07 13:56:10 +02:00
parent b395ed767d
commit f69ea55967
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
<template>
<div class="bd-modals-container">
<div v-for="(modal, index) in modals" :key="`bd-modal-${index}`">
<div class="bd-backdrop" @click="closeModal(index)"></div>
<div v-if="index === 0" class="bd-backdrop" @click="closeModal(index)"></div>
<div v-else :style="{opacity: 0}" class="bd-backdrop" @click="closeModal(index)"></div>
<Modal :headerText="modal.header"
:close="() => closeModal(index)"
:class="[{'bd-err': modal.type && modal.type === 'err'}, {'bd-modal-out': modal.closing}]">