This commit is contained in:
Darren Nelsen 2018-02-21 11:12:23 -05:00
parent eb121c5058
commit df60ec7acc
6 changed files with 2 additions and 34 deletions

View File

@ -69,7 +69,6 @@ export class HomePage {
public showIntegration: any;
private isNW: boolean;
private isWindowsPhoneApp: boolean;
private updatingWalletId: object;
private zone: any;
@ -99,7 +98,6 @@ export class HomePage {
this.updatingWalletId = {};
this.cachedBalanceUpdateOn = '';
this.isNW = this.platformProvider.isNW;
this.isWindowsPhoneApp = this.platformProvider.isWP;
this.showReorderBtc = false;
this.showReorderBch = false;
this.zone = new NgZone({ enableLongStackTrace: false });
@ -197,10 +195,6 @@ export class HomePage {
private checkFeedbackInfo() {
this.persistenceProvider.getFeedbackInfo().then((info: any) => {
if (this.isWindowsPhoneApp) {
this.showRateCard = false;
return;
}
if (!info) {
this.initFeedBackInfo();
} else {

View File

@ -54,7 +54,6 @@ export class ConfirmPage {
// Platform info
public isCordova: boolean;
public isWindowsPhoneApp: boolean;
// custom fee flag
public usingCustomFee: boolean = false;
@ -86,7 +85,6 @@ export class ConfirmPage {
this.config = this.configProvider.get();
this.configFeeLevel = this.config.wallet.settings.feeLevel ? this.config.wallet.settings.feeLevel : 'normal';
this.isCordova = this.platformProvider.isCordova;
this.isWindowsPhoneApp = this.platformProvider.isCordova && this.platformProvider.isWP;
}
ionViewWillEnter() {
@ -253,23 +251,11 @@ export class ConfirmPage {
private setButtonText(isMultisig: boolean, isPayPro: boolean): void {
if (isPayPro) {
// if (this.isCordova && !this.isWindowsPhoneApp) {
// this.buttonText = this.translate.instant('Slide to pay');
// } else {
this.buttonText = this.translate.instant('Click to pay');
// }
} else if (isMultisig) {
// if (this.isCordova && !this.isWindowsPhoneApp) {
// this.buttonText = this.translate.instant('Slide to accept');
// } else {
this.buttonText = this.translate.instant('Click to accept');
// }
} else {
// if (this.isCordova && !this.isWindowsPhoneApp) {
// this.buttonText = this.translate.instant('Slide to send');
// } else {
this.buttonText = this.translate.instant('Click to send');
// }
}
}

View File

@ -24,7 +24,7 @@
Send feedback
</ion-item>
<ion-item *ngIf="isCordova && !isWindowsPhoneApp" (click)="openFeedbackCompletePage()">
<ion-item *ngIf="isCordova" (click)="openFeedbackCompletePage()">
<ion-icon name="ios-heart-outline" item-start></ion-icon>
Share {{ appName }}
</ion-item>

View File

@ -43,7 +43,6 @@ export class SettingsPage {
public config: any;
public selectedAlternative: any;
public isCordova: boolean;
public isWindowsPhoneApp: boolean;
public lockMethod: string;
public exchangeServices: any[] = [];
public bitpayCardEnabled: boolean = false;
@ -65,7 +64,6 @@ export class SettingsPage {
this.walletsBch = [];
this.walletsBtc = [];
this.isCordova = this.platformProvider.isCordova;
this.isWindowsPhoneApp = this.platformProvider.isWP;
}
ionViewDidLoad() {

View File

@ -42,7 +42,6 @@ export class TxpDetailsPage {
private GLIDERA_LOCK_TIME: number;
private countDown: any;
private isCordova: boolean;
private isWindowsPhoneApp: boolean;
constructor(
private navParams: NavParams,
@ -70,7 +69,6 @@ export class TxpDetailsPage {
this.currentSpendUnconfirmed = config.spendUnconfirmed;
this.loading = false;
this.isCordova = this.platformProvider.isCordova;
this.isWindowsPhoneApp = this.platformProvider.isCordova && this.platformProvider.isWP;
this.copayers = this.wallet.status.wallet.copayers;
this.copayerId = this.wallet.credentials.copayerId;
this.isShared = this.wallet.credentials.n > 1;
@ -120,18 +118,10 @@ export class TxpDetailsPage {
}).length == this.tx.requiredSignatures - 1;
if (lastSigner) {
// if (this.isCordova && !this.isWindowsPhoneApp) {
// this.buttonText = this.translate.instant('Slide to send');
// } else {
this.buttonText = this.translate.instant('Click to send');
// }
this.successText = this.translate.instant('Payment Sent');
} else {
// if (this.isCordova && !this.isWindowsPhoneApp) {
// this.buttonText = this.translate.instant('Slide to accept');
// } else {
this.buttonText = this.translate.instant('Click to accept');
// }
this.successText = this.translate.instant('Payment Accepted');
}
}

View File

@ -39,7 +39,7 @@ export class PushNotificationsProvider {
this.logger.info('PushNotificationsProvider initialized.');
this.isIOS = this.platformProvider.isIOS;
this.isAndroid = this.platformProvider.isAndroid;
this.usePushNotifications = this.platformProvider.isCordova && !this.platformProvider.isWP;
this.usePushNotifications = this.platformProvider.isCordova;
if (this.usePushNotifications) {