diff --git a/client/src/app/features/recipes/recipes.component.html b/client/src/app/features/recipes/recipes.component.html index e7bd8da..e55ee48 100644 --- a/client/src/app/features/recipes/recipes.component.html +++ b/client/src/app/features/recipes/recipes.component.html @@ -107,11 +107,23 @@ --> - + + + + +
diff --git a/client/src/app/features/recipes/recipes.component.ts b/client/src/app/features/recipes/recipes.component.ts index 6e0733b..e150ef0 100644 --- a/client/src/app/features/recipes/recipes.component.ts +++ b/client/src/app/features/recipes/recipes.component.ts @@ -66,6 +66,8 @@ export class RecipesComponent implements OnInit, OnDestroy { private oldSearchStr = ''; savedTmpfiles: any[] = []; + saveTab: boolean = false; + showSaveNoti: boolean = true; tableCtx?: ElementRef; @@ -150,11 +152,15 @@ export class RecipesComponent implements OnInit, OnDestroy { if(files != undefined && typeof files === 'object'){ // console.log("Obtain saves object: ", files.files[0], typeof files); this.savedTmpfiles = files.files; + // let svf = (document.getElementById('select_savefile_modal') as HTMLInputElement)!.checked; + // console.log("isSavedModalOpened",svf) } }, }) + + this._materialService .getMaterialCodes() .pipe( @@ -340,6 +346,11 @@ export class RecipesComponent implements OnInit, OnDestroy { // TODO: get tmp files to display or } + openLoadSaves(){ + this.showSaveNoti = false; + this.saveTab = true; + } + scrollToTop() { const table = this.tableCtx!.nativeElement; table.scrollTo({ top: 0, behavior: 'smooth' }); diff --git a/server/data/database.db b/server/data/database.db index 4005aa1..ebe9813 100644 Binary files a/server/data/database.db and b/server/data/database.db differ