-
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: Show name and emails of speakers in session notify modal #5427
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/d2ogqrn5j |
@mariobehling @iamareebjamal Please let me know to make any changes till now and I want to know is this route implemeted |
Codecov Report
@@ Coverage Diff @@
## development #5427 +/- ##
===============================================
- Coverage 23.23% 23.22% -0.02%
===============================================
Files 493 493
Lines 5169 5172 +3
Branches 38 38
===============================================
Hits 1201 1201
- Misses 3963 3966 +3
Partials 5 5
Continue to review full report at Codecov.
|
No effect without server changes |
So what should I do now bcz rest part is done I suppose? |
Thank you! Please change as follows:
|
@daretobedifferent18 Create a PR on server to accept CC emails |
and what should be the label name for it? |
@iamareebjamal So now I have to work on open-event-server also? |
Yes this issue constitutes work in both server and frontend. As there is no point of CC box if it doesn't work. You can either work on it or wait for the server part to be completed by someone before this PR is merged. Simply, merging of the PR is blocked on server part being done |
Ok so meanwhile I can explore server project and for this issue frontend part is done so can I now work on other frontend issue? |
You can do either of those |
ok and do I have to make any changes now in this issue @mariobehling @iamareebjamal |
@@ -42,7 +43,7 @@ export default class SessionNotifyModal extends ModalBase { | |||
} | |||
this.mails = await mailPromise; | |||
const session = this.store.peekRecord('session', this.sessionId, { backgroundReload: false }); | |||
this.speakers = session.speakers.map(speaker => `${speaker.name} ${speaker.email}`).join(', '); | |||
this.speakerEmails = session.speakers.map(speaker => `${speaker.name} ${speaker.email}`).join(', '); |
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.
See how computed properties are created
@iamareebjamal Is this the correct way of declaring computed property? it is working fine with this. |
@@ -13,6 +13,12 @@ export default class SessionNotifyModal extends ModalBase { | |||
@tracked saving = false; | |||
@tracked subject = ''; | |||
@tracked message = ''; | |||
@tracked cc = ''; | |||
|
|||
speakerEmails = computed(function(){ |
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.
You didn't list the dependencies of the computed function
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.
I have done it. You can please see the changes made.
This pull request introduces 1 alert when merging 4c4bf22 into e0fd0a3 - view on LGTM.com new alerts:
|
@iamareebjamal I have added computed property for speakerEmails in session-notify-modal.js file so now you can check these changes |
@iamareebjamal I don't know why but on the top it is coming that the this Pr is merging from unknown repository. What should I do. The branch is there in my repo Should I close this and make again PR? |
@@ -35,6 +36,12 @@ export default class SessionNotifyModal extends ModalBase { | |||
return mail; | |||
} | |||
|
|||
@computed('sessionId') | |||
get speakerEmails() { | |||
const session = this.store.peekRecord('session', this.sessionId, { backgroundReload: false }); |
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.
Why backgroundReload: false
?
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.
Bcz I thought otherwise there will be reloading that will be visible but we can do it without specifying backgroundReload: false
and can do it with default behaviour.
const session = this.store.peekRecord('session', this.sessionId);
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.
Yes, please use this instead
@iamareebjamal please let me know what to do and also about the fact that should I create new PR and close this one bcz branch is not showing up at the top. |
No, continue in the same PR |
@iamareebjamal ok so will commiting more changes will reflect in this PR? bcz what I think is this PR is no more connected with the branch, I don't know why |
Just make changes using github UI then. |
@iamareebjamal I am not able to |
OK, leave the PR for now as the CC part is remaining anyway |
@iamareebjamal sir, you can close this. Issue has been solved |
Fixes #5309
Short description of what this resolves:
Show Speaker Name and Speaker Email
Changes proposed in this pull request:
Checklist
development
branch.Before
After