Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions src/components/ConfirmationModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->

<template>
<NcModal class="confirm-modal" @close="cancel">
<NcDialog class="confirm-modal" @close="cancel">
<div class="confirm-modal">
<h2>{{ title }}</h2>
<slot />
Expand All @@ -22,19 +22,19 @@
</NcButton>
</div>
</div>
</NcModal>
</NcDialog>
</template>

<script>

import { NcButton, NcModal } from '@nextcloud/vue'
import { NcButton, NcDialog } from '@nextcloud/vue'
import { translate as t } from '@nextcloud/l10n'

export default {
name: 'ConfirmationModal',
components: {
NcButton,
NcModal,
NcDialog,
},
props: {
title: {
Expand All @@ -60,18 +60,23 @@ export default {
},
cancel() {
this.$emit('cancel')
this.$emit('close')
},
},
}
</script>

<style lang="scss" scoped>
.confirm-modal {
padding: 20px;

padding: 0 20px 20px 20px;
&__buttons {
display: flex;
justify-content: space-between;
margin-top: 30px;
}
}
:deep(.dialog__name){
display: none;
}
Comment on lines +78 to +80
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be problematic for a11y?


</style>
Loading