Commit 340d0002 authored by Filipa Lacerda's avatar Filipa Lacerda

Disable rule in modal.vue breaking tests

parent ee90edae
<script> <script>
/* eslint-disable vue/require-default-prop */
export default { export default {
name: 'Modal', name: 'Modal',
...@@ -6,17 +7,14 @@ ...@@ -6,17 +7,14 @@
id: { id: {
type: String, type: String,
required: false, required: false,
default: '',
}, },
title: { title: {
type: String, type: String,
required: false, required: false,
default: '',
}, },
text: { text: {
type: String, type: String,
required: false, required: false,
default: '',
}, },
hideFooter: { hideFooter: {
type: Boolean, type: Boolean,
...@@ -84,7 +82,7 @@ ...@@ -84,7 +82,7 @@
<div <div
:id="id" :id="id"
class="modal" class="modal"
:class="id === '' ? '' : 'show'" :class="!id ? '' : 'show'"
role="dialog" role="dialog"
tabindex="-1" tabindex="-1"
> >
...@@ -147,7 +145,7 @@ ...@@ -147,7 +145,7 @@
</div> </div>
</div> </div>
<div <div
v-if="id === ''" v-if="!id"
class="modal-backdrop fade in" class="modal-backdrop fade in"
> >
</div> </div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment