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 f873743340..fe6364cc09 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
@@ -1049,26 +1049,20 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
this.onAddWidgetClosed();
this.isAddingWidgetClosed = true;
}
- if (this.widgetEditMode) {
- if (revert) {
- this.dashboard = this.prevDashboard;
- this.dashboardLogoCache = undefined;
- this.dashboardConfiguration = this.dashboard.configuration;
- }
- } else {
- this.resetHighlight();
- if (revert) {
- this.dashboard = this.prevDashboard;
- this.dashboardLogoCache = undefined;
- this.dashboardConfiguration = this.dashboard.configuration;
+ this.resetHighlight();
+ if (revert) {
+ this.dashboard = this.prevDashboard;
+ this.dashboardLogoCache = undefined;
+ this.dashboardConfiguration = this.dashboard.configuration;
+ if (!this.widgetEditMode) {
this.dashboardCtx.dashboardTimewindow = this.dashboardConfiguration.timewindow;
this.updateDashboardCss();
this.entityAliasesUpdated();
this.filtersUpdated();
this.updateLayouts();
- } else {
- this.dashboard.configuration.timewindow = this.dashboardCtx.dashboardTimewindow;
}
+ } else if (!this.widgetEditMode) {
+ this.dashboard.configuration.timewindow = this.dashboardCtx.dashboardTimewindow;
}
}
}
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/action/action-widget.scss b/ui-ngx/src/app/modules/home/components/widget/lib/action/action-widget.scss
index 276fa725b8..6641c2c32e 100644
--- a/ui-ngx/src/app/modules/home/components/widget/lib/action/action-widget.scss
+++ b/ui-ngx/src/app/modules/home/components/widget/lib/action/action-widget.scss
@@ -13,6 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+.mdc-linear-progress.tb-action-widget-progress {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+}
.tb-action-widget-error-container {
position: absolute;
bottom: 0;
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/button/command-button-widget.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/button/command-button-widget.component.html
index a6f01edb67..26f910fdd7 100644
--- a/ui-ngx/src/app/modules/home/components/widget/lib/button/command-button-widget.component.html
+++ b/ui-ngx/src/app/modules/home/components/widget/lib/button/command-button-widget.component.html
@@ -22,10 +22,11 @@