#329509 Fix exception when noImageText is undefined. Update version of nativescript-angular module.

This commit is contained in:
Georgi Prodanov 2017-02-28 19:20:07 +02:00
Родитель 6e8232a7f2
Коммит 713eea6a98
2 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -1,4 +1,4 @@
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { ImagePickerService } from '../../services';
import { utilities } from '../';
@ -9,7 +9,7 @@ import { utilities } from '../';
templateUrl: './photo-picker.template.html',
styleUrls: [ './photo-picker.component.css' ]
})
export class PhotoPickerComponent {
export class PhotoPickerComponent implements OnInit {
private _resizedUrl: string;
@Input('url') rawUrl: string;
@ -40,6 +40,10 @@ export class PhotoPickerComponent {
this._resizedUrl = newValue;
}
ngOnInit() {
this.noImageText = this.noImageText || ''; // patch for NS blowing up if setting text-decoration of undefined
}
onEdit(event) {
if (!this.editable) {
return;

Просмотреть файл

@ -23,7 +23,7 @@
"@angular/router": "3.4.6",
"everlive-sdk": "https://github.com/georgiwe/backend-services-js-sdk.git",
"jstz": "1.0.9",
"nativescript-angular": "1.4.0",
"nativescript-angular": "1.4.1",
"nativescript-imagepicker": "~2.5.1",
"nativescript-permissions": "^1.2.0",
"nativescript-push-notifications": "0.1.2",