Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

root / src / app / upgrade / upgrade.component.ts @ b37a139f

Historique | Voir | Annoter | Télécharger (1,11 ko)

1
import { Component, OnInit } from "@angular/core";
2
import { RadSideDrawer } from "nativescript-ui-sidedrawer";
3
import * as app from "tns-core-modules/application";
4
import { isAndroid, isIOS, device, screen } from "tns-core-modules/platform";
5

    
6
@Component({
7
    selector: "Upgrade",
8
    templateUrl: "./upgrade.component.html"
9
})
10
export class UpgradeComponent implements OnInit {
11

    
12
    constructor() {
13
        // Use the component constructor to inject providers.
14
    }
15

    
16
    ngOnInit(): void {
17
        // Init your component properties here.
18
    }
19

    
20
    onDrawerButtonTap(): void {
21
        const sideDrawer = <RadSideDrawer>app.getRootView();
22
        sideDrawer.showDrawer();
23
    }
24

    
25
    onUpgradeTap(): void {
26
        var utilityModule = require("utils/utils");
27
        if (isIOS) {
28
            utilityModule.openUrl("itms-apps://itunes.apple.com/fr/app/id1505189000");
29
        }
30
        else {
31
            utilityModule.openUrl("market://details?id=clicalbum.caprel.fr");
32
        }
33
    }
34

    
35
    onWebsiteTap(): void {
36
        var utilityModule = require("utils/utils");
37
        utilityModule.openUrl("https://clicalbum.abuledu.net");
38
    }
39

    
40

    
41
}
Redmine Appliance - Powered by TurnKey Linux