Repository navigation
Conversation
|
Grazie @madbob for the PR, nice cleanup! 馃檶 Il Claudio had a look and says:
Thanks again! |
9223689 to
eb325db
Compare
The unsubscribe link no longer opens.Not correct. The dialog closes too early.We already had this conversation. I'm dumb. Fixed now. Wrong close event.Fixed. Import path.Ok, I've worked too much on Contacts (which is organized in exactly the opposite way). Separate commit for the l10n fix.Ok. Commit subjects.Ok. |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Thanks for the hint. Would you say it makes sense to align the eslint rules? cc @hamza221 |
|
Hey, good call about our earlier discussion (#13357). I'd say we should do the same change here. The callers have to pass in a function to handle the confirmation, so the dialog can await it and show the loading state until it's done. Also, the Cancel button's callback can go: props: {
// ...
confirm: {
type: Function,
required: true,
},
},
emits: ['cancel'],
computed: {
buttons() {
return [
{
label: t('mail', 'Cancel'),
variant: 'tertiary',
disabled: this.disabled,
},
{
label: this.confirmText,
variant: 'primary',
disabled: this.disabled,
callback: async () => {
await this.confirm()
return false
},
href: this.confirmUrl,
target: this.confirmUrl ? '_blank' : undefined,
},
]
},
},Callers:
|
I honestly prefer The way it's done in contacts side, unless there are some real perf implications |
|
Ok, I've done some cleanup around on messy events.
I'm not sure about this... In the current setup (no explicit closing event emitted, relying on but the I cannot find any |
Signed-off-by: Roberto Guido <info@madbob.org>
Simplified
ConfirmationModalto useNcDialog.Bonus: made translatable the title of "Delete tag" modal.
Fixes #10101