-
Notifications
You must be signed in to change notification settings - Fork 298
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
Fetch/Display Mobile App QR Code #880
Conversation
b6d1377
to
a012484
Compare
67c900f
to
a3df014
Compare
6e6209d
to
10faa57
Compare
onClick: () => void; | ||
}; | ||
|
||
// TODO: right now this shows a confirmation pop-up modal on top of the user settings modal, do we want to maybe change this? |
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.
@teodosii UX related question to point out
{activeTab === UserSettingsTab.MobileAppVerification && ( | ||
<MobileAppVerification userPk={id} phone={storeUser.unverified_phone_number || '+'} /> | ||
)} | ||
{/* TODO: we should probably hide this tab when a user (ie. Admin) is viewing the user settings for another user. Would it make sense for an Admin to be able to link their mobile app to another user's profile */} |
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.
general question/comment. should we hide this tab when a user is viewing the settings for another user? I don't think it makes sense to allow user's to link their own mobile app to the profile of another user. Thoughts?
@action | ||
getCurrentUser() { | ||
return this.items[this.currentUserPk as User['pk']]; | ||
} |
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.
we already have a UserStore.currentUser
getter
.. this didn't seem to be referenced anywhere in the codebase (nor in oncall-private
), I think it's safe to remove
5585ae2
to
5a4fc90
Compare
@teodosii there is still some minor styling polishing I believe, but I'll go ahead and merge this and we can follow up in a subsequent PR with that (+ address the two questions I had) |
Fetch/Display Mobile App QR Code
What this PR does:
Adds support for fetching/displaying QR code that will (eventually) be used to link the mobile app to your OnCall instance.
https://www.loom.com/share/aa12bfd7f5b846459f5976161d4550ad
Checklist
CHANGELOG.md
updated