Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
portal-apps-manage
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
portal-apps-manage
Commits
33a42dab
Commit
33a42dab
authored
Sep 01, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete
parent
db9b5141
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
dashboard-management.component.ts
...PU/dashboard-management/dashboard-management.component.ts
+8
-4
No files found.
src/app/DPU/dashboard-management/dashboard-management.component.ts
View file @
33a42dab
...
...
@@ -724,10 +724,14 @@ export class DashboardManagementComponent implements OnInit {
if
(
!
this
.
dashboardData
)
return
;
if
(
confirm
(
'Are you sure you want to remove this widget?'
))
{
const
updatedDashboard
=
{
...
this
.
dashboardData
,
widgets
:
this
.
dashboardData
.
widgets
.
filter
(
w
=>
w
.
id
!==
panelId
)
};
this
.
dashboardDataService
.
saveDashboard
(
updatedDashboard
).
subscribe
(
updated
=>
{
this
.
dashboardData
=
updated
;
this
.
panels
=
this
.
mapWidgetsToPanels
(
this
.
dashboardData
.
widgets
);
});
this
.
dashboardData
=
updatedDashboard
;
this
.
panels
=
this
.
mapWidgetsToPanels
(
updatedDashboard
.
widgets
);
// const updatedDashboard = { ...this.dashboardData, widgets: this.dashboardData.widgets.filter(w => w.id !== panelId) };
// this.dashboardDataService.saveDashboard(updatedDashboard).subscribe(updated => {
// this.dashboardData = updated;
// this.panels = this.mapWidgetsToPanels(this.dashboardData.widgets);
// });
}
}
...
...
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