forked from jsnbuchanan/crowd-funder-for-time-pwa
fix: Restore "Get someone to onboard you" button functionality
Replace notify.confirm() with $notify() in ProjectsView to support complex modal with custom Yes/No buttons and routing callbacks for non-registered users.
This commit is contained in:
@@ -638,16 +638,18 @@ export default class ProjectsView extends Vue {
|
||||
* - Alternative sharing methods for remote users
|
||||
*/
|
||||
promptForShareMethod() {
|
||||
this.notify.confirm(
|
||||
NOTIFY_CAMERA_SHARE_METHOD.title,
|
||||
NOTIFY_CAMERA_SHARE_METHOD.text,
|
||||
this.$notify(
|
||||
{
|
||||
group: "modal",
|
||||
type: "confirm",
|
||||
title: NOTIFY_CAMERA_SHARE_METHOD.title,
|
||||
text: NOTIFY_CAMERA_SHARE_METHOD.text,
|
||||
onYes: () => this.handleQRCodeClick(),
|
||||
onNo: () => this.$router.push({ name: "share-my-contact-info" }),
|
||||
yesText: NOTIFY_CAMERA_SHARE_METHOD.yesText,
|
||||
noText: NOTIFY_CAMERA_SHARE_METHOD.noText,
|
||||
timeout: TIMEOUTS.MODAL,
|
||||
},
|
||||
TIMEOUTS.MODAL,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user