diff --git a/ui-ngx/src/app/modules/home/components/alias/entity-alias-dialog.component.scss b/ui-ngx/src/app/modules/home/components/alias/entity-alias-dialog.component.scss
index 51a25742b7..969729c373 100644
--- a/ui-ngx/src/app/modules/home/components/alias/entity-alias-dialog.component.scss
+++ b/ui-ngx/src/app/modules/home/components/alias/entity-alias-dialog.component.scss
@@ -13,16 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+@import '../../../../../scss/constants';
+
:host {
.tb-resolve-multiple-switch {
- padding-left: 10px;
-
- .resolve-multiple-switch {
- margin: 0;
- }
-
- .resolve-multiple-label {
- margin: 5px 0;
+ padding: 18px 0 0 18px;
+ @media #{$mat-xs} {
+ padding: 0 0 18px 0;
}
}
-}
\ No newline at end of file
+}
diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts
index 06b4924a7d..70022fff1b 100644
--- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts
+++ b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts
@@ -1350,9 +1350,9 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
});
}
- exportWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget) {
+ exportWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget, widgetTitle: string) {
$event.stopPropagation();
- this.importExport.exportWidget(this.dashboard, this.dashboardCtx.state, layoutCtx.id, widget);
+ this.importExport.exportWidget(this.dashboard, this.dashboardCtx.state, layoutCtx.id, widget, widgetTitle);
}
widgetClicked($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget) {
diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.models.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.models.ts
index 2f18de2e6e..b2ed609c29 100644
--- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.models.ts
+++ b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.models.ts
@@ -49,7 +49,7 @@ export interface IDashboardController {
openDashboardState(stateId: string, openRightLayout: boolean);
addWidget($event: Event, layoutCtx: DashboardPageLayoutContext);
editWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget);
- exportWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget);
+ exportWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget, widgetTitle: string);
removeWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget);
widgetMouseDown($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget);
widgetClicked($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget);
diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.scss b/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.scss
index 1285b9568c..c75d485151 100644
--- a/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.scss
+++ b/ui-ngx/src/app/modules/home/components/dashboard-page/edit-widget.component.scss
@@ -21,7 +21,7 @@
right: 0;
bottom: 0;
background: #fff;
- z-index: 1;
+ z-index: 5;
}
.widget-preview-section {
position: absolute;
diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.ts
index 9b4aee95e5..36fb4d2427 100644
--- a/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.ts
+++ b/ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.ts
@@ -226,8 +226,8 @@ export class DashboardLayoutComponent extends PageComponent implements ILayoutCo
this.layoutCtx.dashboardCtrl.editWidget($event, this.layoutCtx, widget);
}
- onExportWidget($event: Event, widget: Widget): void {
- this.layoutCtx.dashboardCtrl.exportWidget($event, this.layoutCtx, widget);
+ onExportWidget($event: Event, widget: Widget, widgetTitle: string): void {
+ this.layoutCtx.dashboardCtrl.exportWidget($event, this.layoutCtx, widget, widgetTitle);
}
onRemoveWidget($event: Event, widget: Widget): void {
diff --git a/ui-ngx/src/app/modules/home/components/dashboard/dashboard.component.ts b/ui-ngx/src/app/modules/home/components/dashboard/dashboard.component.ts
index 6cc1ec7dbe..ce968d0e47 100644
--- a/ui-ngx/src/app/modules/home/components/dashboard/dashboard.component.ts
+++ b/ui-ngx/src/app/modules/home/components/dashboard/dashboard.component.ts
@@ -54,7 +54,7 @@ import { IAliasController, IStateController } from '@app/core/api/widget-api.mod
import { Widget, WidgetPosition } from '@app/shared/models/widget.models';
import { MatMenuTrigger } from '@angular/material/menu';
import { SafeStyle } from '@angular/platform-browser';
-import { distinct } from 'rxjs/operators';
+import { distinct, take } from 'rxjs/operators';
import { ResizeObserver } from '@juggle/resize-observer';
import { UtilsService } from '@core/services/utils.service';
import { WidgetComponentAction, WidgetComponentActionType } from '@home/components/widget/widget-container.component';
@@ -436,7 +436,11 @@ export class DashboardComponent extends PageComponent implements IDashboardCompo
$event.stopPropagation();
}
if (this.isExportActionEnabled && this.callbacks && this.callbacks.onExportWidget) {
- this.callbacks.onExportWidget($event, widget.widget);
+ widget.title$.pipe(
+ take(1)
+ ).subscribe((widgetTitle) => {
+ this.callbacks.onExportWidget($event, widget.widget, widgetTitle);
+ });
}
}
diff --git a/ui-ngx/src/app/modules/home/components/entity/entity-filter.component.html b/ui-ngx/src/app/modules/home/components/entity/entity-filter.component.html
index 845c3bd2e8..61d22dcff4 100644
--- a/ui-ngx/src/app/modules/home/components/entity/entity-filter.component.html
+++ b/ui-ngx/src/app/modules/home/components/entity/entity-filter.component.html
@@ -130,67 +130,57 @@
-
-
-