-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2945 from nextcloud/enh/switch-ncselect
Switch to NcSelect and `@nextcloud/vue` 8
- Loading branch information
Showing
24 changed files
with
2,610 additions
and
1,971 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<template> | ||
<NcModal> | ||
<div class="confirmation-dialog"> | ||
<h1>{{ name }}</h1> | ||
<p>{{ description }}</p> | ||
<div class="confirmation-dialog--buttons"> | ||
<NcButton type="secondary" | ||
@click="() => close(false)"> | ||
{{ cancelButtonText }} | ||
</NcButton> | ||
<NcButton type="primary" | ||
@click="() => close(true)"> | ||
{{ confirmButtonText }} | ||
</NcButton> | ||
</div> | ||
</div> | ||
</NcModal> | ||
</template> | ||
<script> | ||
import { NcButton, NcModal } from '@nextcloud/vue' | ||
import { translate as t } from '@nextcloud/l10n' | ||
export default { | ||
name: 'Confirmation', | ||
components: { | ||
NcButton, | ||
NcModal, | ||
}, | ||
props: { | ||
name: { | ||
type: String, | ||
default: '', | ||
}, | ||
description: { | ||
type: String, | ||
default: '', | ||
}, | ||
confirmButtonText: { | ||
type: String, | ||
default: t('richdocuments', 'Confirm'), | ||
}, | ||
cancelButtonText: { | ||
type: String, | ||
default: t('richdocuments', 'Cancel'), | ||
}, | ||
}, | ||
emits: ['close'], | ||
methods: { | ||
t, | ||
close(result) { | ||
this.$emit('close', result) | ||
}, | ||
}, | ||
} | ||
</script> | ||
<style lang="scss" scoped> | ||
.confirmation-dialog { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
margin: 24px; | ||
h1 { | ||
font-size: 120%; | ||
font-weight: bold; | ||
margin-bottom: 12px; | ||
} | ||
&--buttons { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: space-between; | ||
width: 100%; | ||
margin-top: 24px; | ||
} | ||
} | ||
</style> |
Oops, something went wrong.