Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mySkill-x
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
angular
mySkill-x
Commits
d83a0036
Commit
d83a0036
authored
Jun 02, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'UAT' of
https://mygit.myhr.co.th/angular/mySkill-x
into UAT
parents
f92737db
33fd588b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
role-permission-config.component.ts
...ole-permission-config/role-permission-config.component.ts
+1
-1
sidebar.component.ts
src/app/shared/components/sidebar/sidebar.component.ts
+4
-4
No files found.
src/app/components/company-components/account-settings/role-permission-config/role-permission-config.component.ts
View file @
d83a0036
...
...
@@ -17,7 +17,7 @@ export class RolePermissionConfigComponent {
currentModal
:
'add'
|
'edit'
|
'delete'
|
'updateMenu'
=
"add"
setMenuPage
=
tru
e
setMenuPage
=
fals
e
configPermission
:
{
loading
:
boolean
,
select
:
ConfigPermissionModel
,
dataList
:
ConfigPermissionModel
[]
}
=
{
loading
:
false
,
select
:
new
MyConfigPermissionModel
(),
dataList
:
[]
}
menuItems
:
MenuBodyModel
[]
=
[]
menuItemsShow
:
Map
<
string
,
boolean
>
=
new
Map
();
...
...
src/app/shared/components/sidebar/sidebar.component.ts
View file @
d83a0036
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment