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
82b33d42
Commit
82b33d42
authored
Sep 08, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard
parent
60f86e50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
dashboard-management.component.ts
...ge/dashboard-management/dashboard-management.component.ts
+4
-1
No files found.
src/app/portal-manage/dashboard-management/dashboard-management.component.ts
View file @
82b33d42
...
...
@@ -294,6 +294,7 @@ export class DashboardManagementComponent implements OnInit {
}
addWidgetToDashboard
(
menuItem
:
MenuItemsWidget
):
void
{
console
.
log
(
'Adding widget to dashboard:'
,
menuItem
);
if
(
!
this
.
dashboardData
)
{
this
.
notificationService
.
warning
(
'Warning'
,
'Please select or create a dashboard first.'
);
return
;
...
...
@@ -301,7 +302,9 @@ export class DashboardManagementComponent implements OnInit {
// Create a new widget instance from the menu item's widget template
const
newWidgetInstance
=
new
WidgetModel
(
menuItem
.
widget
);
if
(
menuItem
.
config
)
{
newWidgetInstance
.
config
=
menuItem
.
config
;
}
// Ensure the config is an object
if
(
typeof
newWidgetInstance
.
config
===
'string'
)
{
try
{
...
...
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