fix skipping recipe list bug
This commit is contained in:
parent
ece4cef205
commit
b3b55be388
6 changed files with 40 additions and 9 deletions
|
|
@ -117,7 +117,7 @@ const routes: Routes = [
|
|||
),
|
||||
canActivate: [
|
||||
authGuard,
|
||||
permissionsGuard(UserPermissions.THAI_PERMISSION),
|
||||
permissionsGuard(UserPermissions.VIEWER, UserPermissions.EDITOR),
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
@ -128,7 +128,7 @@ const routes: Routes = [
|
|||
).then((m) => m.RecipeDetailsComponent),
|
||||
canActivate: [
|
||||
authGuard,
|
||||
permissionsGuard(UserPermissions.THAI_PERMISSION),
|
||||
permissionsGuard(UserPermissions.VIEWER, UserPermissions.EDITOR),
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
@ -166,14 +166,14 @@ const routes: Routes = [
|
|||
(m) => m.UnauthorizedComponent
|
||||
),
|
||||
},
|
||||
{
|
||||
path: 'notfound',
|
||||
loadComponent: () =>
|
||||
import('./core/notfound.component').then((m) => m.NotfoundComponent),
|
||||
},
|
||||
// {
|
||||
// path: 'notfound',
|
||||
// loadComponent: () =>
|
||||
// import('./core/notfound.component').then((m) => m.NotfoundComponent),
|
||||
// },
|
||||
{
|
||||
path: '**',
|
||||
redirectTo: 'notfound',
|
||||
redirectTo: 'departments',
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
</svg>
|
||||
</button>
|
||||
<a
|
||||
routerLink="/{{ current_department }}/recipes"
|
||||
routerLink="/departments"
|
||||
class="flex ml-14 max-sm:hidden"
|
||||
>
|
||||
<img
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
>
|
||||
<td class="font-medium text-gray-900 whitespace-nowrap sticky left-0">
|
||||
<input type="checkbox" class="toggle" formControlName="isUse" />
|
||||
<p>{{i}}</p>
|
||||
</td>
|
||||
<td class="font-medium text-gray-900 whitespace-nowrap sticky">
|
||||
<input
|
||||
|
|
|
|||
|
|
@ -208,6 +208,7 @@ export class RecipesComponent implements OnInit, OnDestroy, AfterViewInit {
|
|||
.subscribe({
|
||||
next: (files: any) => {
|
||||
console.log('Obtain saves: ', typeof files, files);
|
||||
this.showSaveNoti = false;
|
||||
if (files != undefined && typeof files === 'object') {
|
||||
if (files.files != null) {
|
||||
console.log(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue