File tree Expand file tree Collapse file tree 1 file changed +16
-26
lines changed
Expand file tree Collapse file tree 1 file changed +16
-26
lines changed Original file line number Diff line number Diff line change 33 - SPDX-License-Identifier: AGPL-3.0-or-later
44-->
55<template >
6- <NcModal v-if =" showModal" :name =" t('tables', 'Confirm action')" @close =" $emit('cancel')" >
7- <div class =" modal__content" >
8- <div class =" row" >
9- <div v-if =" title" class =" col-4" >
10- <h2 >{{ title }}</h2 >
11- </div >
12- <div v-if =" description" class =" col-4" >
13- <p >{{ description }}</p >
14- </div >
15- </div >
16- <div class =" row space-T" >
17- <div class =" fix-col-4 space-T justify-between" >
18- <div >
19- <NcButton :aria-label =" cancelTitle" @click =" $emit('cancel')" >
20- {{ cancelTitle }}
21- </NcButton >
22- </div >
23- <div >
24- <NcButton :type =" confirmClass" :aria-label =" confirmTitle" @click =" $emit('confirm')" >
25- {{ confirmTitle }}
26- </NcButton >
27- </div >
28- </div >
6+ <NcDialog v-if =" showModal" :out-transition =" true"
7+ size =" normal" close-on-click-outside :name =" title" @closing =" $emit('cancel')" >
8+ <div class =" row" >
9+ <div v-if =" description" class =" col-4" >
10+ <p >{{ description }}</p >
2911 </div >
3012 </div >
31- </NcModal >
13+ <template #actions >
14+ <NcButton :aria-label =" cancelTitle" :type =" cancelClass" @click =" $emit('cancel')" >
15+ {{ cancelTitle }}
16+ </NcButton >
17+ <NcButton :type =" confirmClass" :aria-label =" confirmTitle" @click =" $emit('confirm')" >
18+ {{ confirmTitle }}
19+ </NcButton >
20+ </template >
21+ </NcDialog >
3222</template >
3323
3424<script >
35- import { NcModal , NcButton } from ' @nextcloud/vue'
25+ import { NcDialog , NcButton } from ' @nextcloud/vue'
3626
3727export default {
3828 name: ' DialogConfirmation' ,
3929 components: {
40- NcModal ,
30+ NcDialog ,
4131 NcButton,
4232 },
4333 props: {
You can’t perform that action at this time.
0 commit comments