File tree 3 files changed +10
-5
lines changed
protocols/aeternity/components
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<LinkButton
3
3
:to =" explorerUrl"
4
- target =" _blank"
5
4
class =" account-item"
6
5
variant =" muted"
7
6
>
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ import { useI18n } from 'vue-i18n';
67
67
import type { INotification } from ' @/types' ;
68
68
import { relativeTimeTo } from ' @/utils' ;
69
69
import {
70
+ IS_CORDOVA ,
70
71
IS_EXTENSION ,
71
72
IS_MOBILE_DEVICE ,
72
73
NOTIFICATION_STATUS_READ ,
@@ -146,7 +147,11 @@ export default defineComponent({
146
147
function handleClick() {
147
148
if (props .notification .path ) {
148
149
if (typeof props .notification .path === ' string' && / ^ \w + :\D + / .test (props .notification .path )) {
149
- window .open (props .notification .path , IS_MOBILE_DEVICE ? ' _self' : ' _blank' );
150
+ if (IS_CORDOVA && window .cordova ?.InAppBrowser ?.open ) {
151
+ window .cordova .InAppBrowser .open (props .notification .path , ' _system' );
152
+ } else {
153
+ window .open (props .notification .path , ' _blank' );
154
+ }
150
155
} else {
151
156
router .push (props .notification .path );
152
157
}
Original file line number Diff line number Diff line change 8
8
class =" subtitle"
9
9
scope =" global"
10
10
>
11
- <a
11
+ <LinkButton
12
12
:href =" AGGREGATOR_URL"
13
- target =" _blank"
14
13
class =" link"
15
14
>
16
15
{{ $t('pages.notifications.superhero') }}
17
- </a >
16
+ </LinkButton >
18
17
</i18n-t >
19
18
</template >
20
19
</ModalHeader >
@@ -81,6 +80,7 @@ import { AE_CONTRACT_ID } from '@/protocols/aeternity/config';
81
80
import { useAccounts } from ' @/composables' ;
82
81
import { getDefaultAccountLabel } from ' @/utils' ;
83
82
83
+ import LinkButton from ' @/popup/components/LinkButton.vue' ;
84
84
import ModalHeader from ' @/popup/components/ModalHeader.vue' ;
85
85
import TokenAmount from ' @/popup/components/TokenAmount.vue' ;
86
86
import FormTextarea from ' @/popup/components/form/FormTextarea.vue' ;
@@ -92,6 +92,7 @@ export default {
92
92
name: ' TransferReviewTip' ,
93
93
components: {
94
94
AddressTruncated,
95
+ LinkButton,
95
96
ModalHeader,
96
97
TokenAmount,
97
98
FormTextarea,
You can’t perform that action at this time.
0 commit comments