Révision 54800558 src/app/upgrade/upgrade.component.ts
src/app/upgrade/upgrade.component.ts | ||
---|---|---|
2 | 2 |
import { RadSideDrawer } from "nativescript-ui-sidedrawer"; |
3 | 3 |
import * as app from "tns-core-modules/application"; |
4 | 4 |
import { isAndroid, isIOS, device, screen } from "tns-core-modules/platform"; |
5 |
import { getString, setString, hasKey, remove, clear } from "tns-core-modules/application-settings"; |
|
5 | 6 |
|
6 | 7 |
@Component({ |
7 | 8 |
selector: "Upgrade", |
8 | 9 |
templateUrl: "./upgrade.component.html" |
9 | 10 |
}) |
10 | 11 |
export class UpgradeComponent implements OnInit { |
12 |
private changelog: string; |
|
13 |
private message: string; |
|
14 |
private upgradeuri: string; |
|
15 |
public serverJSON: JSON; |
|
11 | 16 |
|
12 | 17 |
constructor() { |
13 | 18 |
// Use the component constructor to inject providers. |
19 |
this.changelog = ""; |
|
20 |
this.message = ""; |
|
21 |
this.upgradeuri = ""; |
|
14 | 22 |
} |
15 | 23 |
|
16 | 24 |
ngOnInit(): void { |
17 | 25 |
// Init your component properties here. |
26 |
this.serverJSON = JSON.parse(getString("serverJSON")); |
|
27 |
this.changelog = this.serverJSON['APPchangelog']; |
|
18 | 28 |
} |
19 | 29 |
|
20 | 30 |
onDrawerButtonTap(): void { |
Formats disponibles : Unified diff