|
|
|
|
@ -75,7 +75,8 @@ export class FileUploderProfileComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
async openFile() {
|
|
|
|
|
const actionSheet = await this.actionSheetCtrl.create({
|
|
|
|
|
header: 'Change Profile Photo',
|
|
|
|
|
// header: 'Change Profile Photo',
|
|
|
|
|
header: this.ts.trPK('userProfile', 'changeImg'),
|
|
|
|
|
buttons: [{
|
|
|
|
|
// text: 'Delete Current Image',
|
|
|
|
|
// role: 'destructive',
|
|
|
|
|
@ -85,7 +86,8 @@ export class FileUploderProfileComponent implements OnInit {
|
|
|
|
|
// this.deleteCurrent();
|
|
|
|
|
// }
|
|
|
|
|
// },{
|
|
|
|
|
text: 'Take Photo',
|
|
|
|
|
// text: 'Take Photo',
|
|
|
|
|
text: this.ts.trPK('general', 'takePhoto'),
|
|
|
|
|
icon: 'camera',
|
|
|
|
|
handler: () => {
|
|
|
|
|
console.log('Take Photo');
|
|
|
|
|
@ -94,7 +96,8 @@ export class FileUploderProfileComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
|
|
text: 'Choose from Library',
|
|
|
|
|
// text: 'Choose from Library',
|
|
|
|
|
text: this.ts.trPK('general', 'Choose-from-Library'),
|
|
|
|
|
icon: 'images',
|
|
|
|
|
handler: () => {
|
|
|
|
|
console.log('Favorite clicked');
|
|
|
|
|
@ -102,7 +105,8 @@ export class FileUploderProfileComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
text: 'Cancel',
|
|
|
|
|
// text: 'Cancel',
|
|
|
|
|
text: this.ts.trPK('general', 'cancel'),
|
|
|
|
|
icon: 'close',
|
|
|
|
|
role: 'cancel',
|
|
|
|
|
handler: () => {
|
|
|
|
|
|