-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EGON-38: Restore last autosaved draft on reload #113
- Loading branch information
Tom Dymel
committed
Dec 21, 2023
1 parent
6305851
commit 3650046
Showing
8 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { ModelerService } from '../../Service/Modeler/modeler.service'; | ||
import { AutosaveService } from '../../Service/Autosave/autosave.service'; | ||
|
||
@Component({ | ||
selector: 'app-modeler', | ||
templateUrl: './modeler.component.html', | ||
styleUrls: ['./modeler.component.scss'], | ||
}) | ||
export class ModelerComponent implements OnInit { | ||
constructor(private modelerService: ModelerService) {} | ||
constructor( | ||
private modelerService: ModelerService, | ||
private autosaveService: AutosaveService | ||
) {} | ||
|
||
ngOnInit(): void { | ||
this.modelerService.postInit(); | ||
this.autosaveService.loadLatestDraft(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/app/Presentation/LabelDictionary/label-dictionary.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters