File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/pages/modal-with-navigation Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 7
7
</ ion-navbar >
8
8
</ ion-header >
9
9
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 >
12
12
< ion-list >
13
13
< ion-list-header border-bottom > Files</ ion-list-header >
14
14
< ion-item *ngFor ="let document of documents ">
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class ModalWithNavigationPage {
40
40
{
41
41
text : 'Move' ,
42
42
handler : ( ) => {
43
- this . moveDocumentModal ( ) ;
43
+ this . moveDocumentModal ( document ) ;
44
44
console . log ( 'Move clicked' ) ;
45
45
}
46
46
} , {
@@ -67,11 +67,11 @@ export class ModalWithNavigationPage {
67
67
actionSheet . present ( ) ;
68
68
}
69
69
70
- moveDocumentModal ( ) {
70
+ moveDocumentModal ( document ) {
71
71
let myModal = this . modalCtrl . create ( 'ModalNavPage' , { page : 'MoveDocumentPage' } ) ;
72
72
myModal . onDidDismiss ( data => {
73
73
if ( data ) {
74
- this . toastCtrl . create ( 'Moved to folder ' + data . name ) ;
74
+ this . toastCtrl . create ( '"' + document . name + '" moved to folder " ' + data . name + '"' ) ;
75
75
}
76
76
} ) ;
77
77
myModal . present ( ) ;
You can’t perform that action at this time.
0 commit comments