-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: removing ticket group, some extra line and adding a popup #5084
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/jk43avp17 |
Codecov Report
@@ Coverage Diff @@
## development #5084 +/- ##
===============================================
+ Coverage 22.79% 22.88% +0.08%
===============================================
Files 489 489
Lines 5173 5166 -7
Branches 35 35
===============================================
+ Hits 1179 1182 +3
+ Misses 3989 3979 -10
Partials 5 5
Continue to review full report at Codecov.
|
Thanks. For the pop up font, style and size please use the same styles as it is used for other pop ups elsewhere. |
It seems the pop up functionality is inverted. Instead of yes/no please use OK/Cancel.
|
@iamareebjamal how to change button text in confirm helper? |
Make them props |
how to use them in helper |
Currently they'll be hardcoded. You have to make them props and pass them in the component |
See other dialogs which are using OK/Cancel |
|
Complexity increasing per file
==============================
- app/helpers/confirm.js 1
See the complete overview on Codacy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for me UI wise. @iamareebjamal Please check code. Thank you.
.then(() => { | ||
params[1](); | ||
}); | ||
} else if (params.length >= 2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain please what is happening here. Looks very confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.confirm.prompt('Are You Sure?', { 'denyText': params[2], 'approveText': params[3], 'denyColor': params[4], 'approveColor': params[5], 'extra': params[0] })
the options are from service/confirm.js. In confirm-moda.js these are props (denyText, approveText...). in confirm modal helper i am using those and in component passing them.
Fixes #4623
Fixes #5095
@iamareebjamal , when i am clicking no in confirm modal, it is executing action, and on yes it's not. means that in this, yes is working as no, and no is working as yes. rest is working correctly.
Checklist
development
branch.