forked from jsnbuchanan/crowd-funder-for-time-pwa
Merge branch 'master' into active_did_redux
This commit is contained in:
@@ -54,6 +54,7 @@ import { generateEndorserJwtUrlForAccount } from "../libs/endorserServer";
|
||||
import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin";
|
||||
import { Settings } from "@/db/tables/settings";
|
||||
import { Account } from "@/db/tables/accounts";
|
||||
import { copyToClipboard } from "../services/ClipboardService";
|
||||
import { createNotifyHelpers, TIMEOUTS } from "@/utils/notify";
|
||||
|
||||
// Constants for magic numbers
|
||||
@@ -99,7 +100,7 @@ export default class ShareMyContactInfoView extends Vue {
|
||||
}
|
||||
|
||||
const message = await this.generateContactMessage(settings, account);
|
||||
await this.copyToClipboard(message);
|
||||
await copyToClipboard(message);
|
||||
await this.showSuccessNotifications();
|
||||
this.navigateToContacts();
|
||||
} catch (error) {
|
||||
@@ -141,14 +142,6 @@ export default class ShareMyContactInfoView extends Vue {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy the contact message to clipboard
|
||||
*/
|
||||
private async copyToClipboard(message: string): Promise<void> {
|
||||
const { copyToClipboard } = await import("../services/ClipboardService");
|
||||
await copyToClipboard(message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show success notifications after copying
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user