Skip to content

Commit

Permalink
#171: access diary from 'create diary' modal
Browse files Browse the repository at this point in the history
  • Loading branch information
felixerdy committed Mar 24, 2022
1 parent 3fcf850 commit 75bbf3f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/app/diary/diary-edit/diary-edit.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,11 @@
></ion-textarea>
</ion-item>
</ion-content>

<ion-footer *ngIf="isModal">
<ion-toolbar>
<ion-button expand="block" fill="outline" (click)="navigateToDiary()">
{{ 'diary.openEntries' | translate }}
</ion-button>
</ion-toolbar>
</ion-footer>
5 changes: 5 additions & 0 deletions src/app/diary/diary-edit/diary-edit.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,9 @@ export class DiaryEditComponent implements OnInit {
this.modalController.dismiss()
}
}

navigateToDiary() {
this.modalController.dismiss()
this.router.navigate([`/diary`])
}
}
3 changes: 2 additions & 1 deletion src/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"deleteEntryAlertHeader": "Eintrag löschen",
"deleteEntryAlertMessage": "Möchtest du diesen Tagebucheintrag wirklich löschen?",
"exportFileName": "Mein SIMPORT Tagebuch",
"exportFileErrorTitle": "Teilen des Tagebuchs fehlgeschlagen ({{ value }})"
"exportFileErrorTitle": "Teilen des Tagebuchs fehlgeschlagen ({{ value }})",
"openEntries": "Meine Einträge öffnen"
},
"trajectory": {
"select": {
Expand Down
3 changes: 2 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"deleteEntryAlertHeader": "Delete entry",
"deleteEntryAlertMessage": "Are you sure to delete this diary entry?",
"exportFileName": "My SIMPORT diary",
"exportFileErrorTitle": "Sharing diary failed ({{ value }})"
"exportFileErrorTitle": "Sharing diary failed ({{ value }})",
"openEntries": "Open my entries"
},
"trajectory": {
"select": {
Expand Down

0 comments on commit 75bbf3f

Please sign in to comment.