Merge pull request #1143 from Rakasch/docu_confirm_dialog_group

fix ConfirmDialog example and documentation
pull/1281/head
Cagatay Civici 2021-05-18 12:48:30 +03:00 committed by GitHub
commit 6874616c45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ export default {
}, },
confirmPosition(position) { confirmPosition(position) {
this.$confirm.require({ this.$confirm.require({
key: 'positionDialog', group: 'positionDialog',
message: 'Do you want to delete this record?', message: 'Do you want to delete this record?',
header: 'Delete Confirmation', header: 'Delete Confirmation',
icon: 'pi pi-info-circle', icon: 'pi pi-info-circle',
@ -93,4 +93,4 @@ export default {
'ConfirmDialogDoc': ConfirmDialogDoc 'ConfirmDialogDoc': ConfirmDialogDoc
} }
} }
</script> </script>

View File

@ -314,7 +314,7 @@ export default {
}, },
confirmPosition(position) { confirmPosition(position) {
this.$confirm.require({ this.$confirm.require({
key: 'positionDialog', group: 'positionDialog',
message: 'Do you want to delete this record?', message: 'Do you want to delete this record?',
header: 'Delete Confirmation', header: 'Delete Confirmation',
icon: 'pi pi-info-circle', icon: 'pi pi-info-circle',
@ -376,7 +376,7 @@ export default defineComponent({
setup() { setup() {
const confirm = useConfirm(); const confirm = useConfirm();
const toast = useToast(); const toast = useToast();
const confirm1 = () => { const confirm1 = () => {
confirm.require({ confirm.require({
message: 'Are you sure you want to proceed?', message: 'Are you sure you want to proceed?',