diff --git a/app/components/nostr-connect.gjs b/app/components/nostr-connect.gjs index 19194ee..9e278ad 100644 --- a/app/components/nostr-connect.gjs +++ b/app/components/nostr-connect.gjs @@ -7,6 +7,7 @@ import qrCode from '../modifiers/qr-code'; export default class NostrConnectComponent extends Component { @service nostrAuth; + @service toast; get hasExtension() { return typeof window !== 'undefined' && typeof window.nostr !== 'undefined'; @@ -16,6 +17,7 @@ export default class NostrConnectComponent extends Component { async connectExtension() { try { await this.nostrAuth.connectWithExtension(); + this.toast.show('Nostr connected successfully'); if (this.args.onConnect) { this.args.onConnect(); } @@ -29,6 +31,7 @@ export default class NostrConnectComponent extends Component { async connectApp() { try { await this.nostrAuth.connectWithApp(); + this.toast.show('Nostr connected successfully'); if (this.args.onConnect) { this.args.onConnect(); } @@ -53,7 +56,7 @@ export default class NostrConnectComponent extends Component { {{else}}