Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polish-community-beth
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Beth Davies
polish-community-beth
Commits
537ea31f
Commit
537ea31f
authored
4 months ago
by
Marnuri Nitish -
Browse files
Options
Downloads
Patches
Plain Diff
Add color change in disable button
parent
e40137de
Loading
Loading
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/static/js/admin/admin.js
+12
-0
12 additions, 0 deletions
src/main/resources/static/js/admin/admin.js
with
12 additions
and
0 deletions
src/main/resources/static/js/admin/admin.js
+
12
−
0
View file @
537ea31f
...
...
@@ -28,6 +28,7 @@ function toggleUserEnabled(userId, enable) {
function
updateUserRole
(
userId
){
const
roleSelect
=
document
.
getElementById
(
'
roleDdl
'
);
debugger
const
selectedValue
=
roleSelect
.
value
;
const
url
=
`/admin/edit/
${
userId
}
/role`
;
...
...
@@ -53,3 +54,14 @@ function updateUserRole(userId){
alert
(
'
Error occurred while updating user role.
'
);
});
}
function
disableColorChange
(){
var
actionBtn
=
document
.
querySelectorAll
(
"
#btn-enable-disable
"
);
actionBtn
.
forEach
(
e
=>
{
if
(
e
.
innerText
.
toLowerCase
().
includes
(
'
disable
'
)){
e
.
style
.
backgroundColor
=
'
#E5E4E6
'
;
e
.
style
.
color
=
'
#09090B
'
;
}
});
}
disableColorChange
();
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment