Commit d83a0036 by Ooh-Ao

Merge branch 'UAT' of https://mygit.myhr.co.th/angular/mySkill-x into UAT

parents f92737db 33fd588b
......@@ -17,7 +17,7 @@ export class RolePermissionConfigComponent {
currentModal: 'add' | 'edit' | 'delete' | 'updateMenu' = "add"
setMenuPage = true
setMenuPage = false
configPermission: { loading: boolean, select: ConfigPermissionModel, dataList: ConfigPermissionModel[] } = { loading: false, select: new MyConfigPermissionModel(), dataList: [] }
menuItems: MenuBodyModel[] = []
menuItemsShow: Map<string, boolean> = new Map();
......
......@@ -209,10 +209,10 @@ export class SidebarComponent {
this.configPermission.data = new MyConfigPermissionModel(response)
this.menuItems.forEach(x => {
// เปิดทุกเมนู
x.show = true
x.children?.forEach(y => {
y.show = true
})
// x.show = true
// x.children?.forEach(y => {
// y.show = true
// })
// เปิดตาม config
const configMenu = this.configPermission.data.menuBody.find(y => y.id == x.id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment