Skip to content

Commit dda4c90

Browse files
committed
removing padding from page, adding document title to toast
1 parent b438728 commit dda4c90

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/pages/modal-with-navigation/modal-with-navigation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</ion-navbar>
88
</ion-header>
99

10-
<ion-content padding>
11-
<p>This sample simulates the behavior of moving files/folders of known apps like dropbox or google drive:</p>
10+
<ion-content>
11+
<p padding>This sample simulates the behavior of moving files/folders of known apps like dropbox or google drive:</p>
1212
<ion-list>
1313
<ion-list-header border-bottom>Files</ion-list-header>
1414
<ion-item *ngFor="let document of documents">

src/pages/modal-with-navigation/modal-with-navigation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class ModalWithNavigationPage {
4040
{
4141
text: 'Move',
4242
handler: () => {
43-
this.moveDocumentModal();
43+
this.moveDocumentModal(document);
4444
console.log('Move clicked');
4545
}
4646
}, {
@@ -67,11 +67,11 @@ export class ModalWithNavigationPage {
6767
actionSheet.present();
6868
}
6969

70-
moveDocumentModal() {
70+
moveDocumentModal(document) {
7171
let myModal = this.modalCtrl.create('ModalNavPage', { page: 'MoveDocumentPage' });
7272
myModal.onDidDismiss(data => {
7373
if (data) {
74-
this.toastCtrl.create('Moved to folder ' + data.name);
74+
this.toastCtrl.create('"' + document.name + '" moved to folder "' + data.name + '"');
7575
}
7676
});
7777
myModal.present();

0 commit comments

Comments
 (0)