Skip to content

Commit

Permalink
fixup! Add confirmation dialog before importing contacts
Browse files Browse the repository at this point in the history
Signed-off-by: greta <[email protected]>
  • Loading branch information
GretaD committed Jan 29, 2024
1 parent 26bfe50 commit 858be11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/ConfirmationDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<slot />
<div class="confirm-modal__buttons">
<NcButton type="tertiary" :disabled="disabled" @click="cancel">
{{ t('mail', 'Cancel') }}
{{ t('contacts', 'Cancel') }}
</NcButton>
<NcButton v-if="resolve"
:href="confirmUrl"
Expand Down Expand Up @@ -46,7 +46,7 @@ export default {
},

Check warning on line 46 in src/components/ConfirmationDialog.vue

View check run for this annotation

Codecov / codecov/patch

src/components/ConfirmationDialog.vue#L44-L46

Added lines #L44 - L46 were not covered by tests
confirmText: {
type: String,
default: t('mail', 'Confirm'),
default: t('contacts', 'Confirm'),
},
confirmUrl: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion src/files-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if (nextcloudVersionIsGreaterThanOr28) {
const ImportConfirmationDialog = Vue.extend(ConfirmationDialog)
dialog = new ImportConfirmationDialog({

Check warning on line 61 in src/files-action.js

View check run for this annotation

Codecov / codecov/patch

src/files-action.js#L55-L61

Added lines #L55 - L61 were not covered by tests
propsData: {
title: 'Confirmation',
title: t('contacts', 'Are you sure you want to import this contact file?'),
resolve,
reject,
},
Expand Down

0 comments on commit 858be11

Please sign in to comment.