(args: observable.EventData)
| 43 | } |
| 44 | |
| 45 | public confirmName(args: observable.EventData) { |
| 46 | dialogs |
| 47 | .confirm({ |
| 48 | title: 'Name', |
| 49 | message: 'Do you want to change the name?', |
| 50 | cancelButtonText: 'No', |
| 51 | neutralButtonText: 'Ignore', |
| 52 | okButtonText: 'Yes', |
| 53 | }) |
| 54 | .then((confirmResult) => { |
| 55 | console.log('### Result: ' + confirmResult); |
| 56 | if (confirmResult) { |
| 57 | this.set('name', 'John Reese'); |
| 58 | } else { |
| 59 | this.set('name', 'Harold Finch'); |
| 60 | } |
| 61 | }); |
| 62 | } |
| 63 | |
| 64 | public loginName(args: observable.EventData) { |
| 65 | dialogs |