|
|
@ -25,6 +25,7 @@ import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; |
|
|
import { DashboardResolver } from '@app/modules/home/pages/dashboard/dashboard-routing.module'; |
|
|
import { DashboardResolver } from '@app/modules/home/pages/dashboard/dashboard-routing.module'; |
|
|
import { UtilsService } from '@core/services/utils.service'; |
|
|
import { UtilsService } from '@core/services/utils.service'; |
|
|
import { Widget } from '@app/shared/models/widget.models'; |
|
|
import { Widget } from '@app/shared/models/widget.models'; |
|
|
|
|
|
import { ConfirmOnExitGuard } from '@core/guards/confirm-on-exit.guard'; |
|
|
|
|
|
|
|
|
@Injectable() |
|
|
@Injectable() |
|
|
export class WidgetEditorDashboardResolver implements Resolve<Dashboard> { |
|
|
export class WidgetEditorDashboardResolver implements Resolve<Dashboard> { |
|
|
@ -59,6 +60,7 @@ const routes: Routes = [ |
|
|
{ |
|
|
{ |
|
|
path: 'dashboard/:dashboardId', |
|
|
path: 'dashboard/:dashboardId', |
|
|
component: DashboardPageComponent, |
|
|
component: DashboardPageComponent, |
|
|
|
|
|
canDeactivate: [ConfirmOnExitGuard], |
|
|
data: { |
|
|
data: { |
|
|
breadcrumb: { |
|
|
breadcrumb: { |
|
|
skip: true |
|
|
skip: true |
|
|
@ -75,6 +77,7 @@ const routes: Routes = [ |
|
|
{ |
|
|
{ |
|
|
path: 'widget-editor', |
|
|
path: 'widget-editor', |
|
|
component: DashboardPageComponent, |
|
|
component: DashboardPageComponent, |
|
|
|
|
|
canDeactivate: [ConfirmOnExitGuard], |
|
|
data: { |
|
|
data: { |
|
|
breadcrumb: { |
|
|
breadcrumb: { |
|
|
skip: true |
|
|
skip: true |
|
|
|