1
1
import { Component } from '@angular/core' ;
2
2
import { MatSnackBar } from '@angular/material/snack-bar' ;
3
3
import { ActivatedRoute } from '@angular/router' ;
4
- import { Plugins } from '@capacitor/core ' ;
4
+ import { Clipboard } from '@capacitor/clipboard ' ;
5
5
import { NavController } from '@ionic/angular' ;
6
6
import { TranslocoService } from '@ngneat/transloco' ;
7
7
import { UntilDestroy , untilDestroyed } from '@ngneat/until-destroy' ;
@@ -21,9 +21,7 @@ import { ErrorService } from '../../../../shared/error/error.service';
21
21
import { BubbleToIonicPostMessage } from '../../../../shared/iframe/iframe' ;
22
22
import { NetworkService } from '../../../../shared/network/network.service' ;
23
23
import { isNonNullable } from '../../../../utils/rx-operators/rx-operators' ;
24
- import { getAssetProfileForNSE } from '../../../../utils/url' ;
25
24
26
- const { Browser, Clipboard } = Plugins ;
27
25
@UntilDestroy ( { checkProperties : true } )
28
26
@Component ( {
29
27
selector : 'app-network-action-order-details' ,
@@ -125,18 +123,6 @@ export class NetworkActionOrderDetailsPage {
125
123
. subscribe ( ) ;
126
124
}
127
125
128
- // eslint-disable-next-line class-methods-use-this
129
- openResultUrl ( url : string ) {
130
- if ( url ) {
131
- Browser . open ( { url, toolbarColor : '#000000' } ) ;
132
- }
133
- }
134
-
135
- // eslint-disable-next-line class-methods-use-this
136
- resultUrlFromAssetId ( assetId : string ) {
137
- return getAssetProfileForNSE ( assetId ) ;
138
- }
139
-
140
126
async copyToClipboard ( value : string ) {
141
127
await Clipboard . write ( { string : value } ) ;
142
128
this . snackBar . open (
0 commit comments