All files / src BaseDialog.vue

100% Statements 14/14
50% Branches 2/4
100% Functions 8/8
100% Lines 14/14

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 191x 16x 16x 16x 16x                   20x       20x
<template lang="pug">
Modal(ref='modal' @hidden="onHiddenEvent")
  template(v-slot:title)
    slot(name='title' v-bind='{ resolve, reject, visible }')
      h5.modal-title {{ title }}
  slot(name='default' v-bind='{ resolve, reject, visible }')
    | {{ text }}
  template(v-slot:footer='')
    slot(name='footer' v-bind='{ resolve, reject, visible }')
      .d-flex.justify-content-end
        button.mr-1.btn.btn-secondary(@click='resolve(false)')
          kbd.mr-2(v-if="showKeyHints") Esc
          | Cancel
        button.btn.btn-danger(@click='resolve(true)')
          kbd.mr-2(v-if="showKeyHints") Enter
          | Ok
</template>
<script src='./BaseDialog.vue.js' />s