diff --git a/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.html b/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.html index 63a031d8c..cf8ca5f30 100644 --- a/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.html +++ b/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.html @@ -53,7 +53,7 @@
-
+
@@ -97,7 +97,7 @@
-
+
diff --git a/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.ts b/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.ts index cc1b529d4..be422058f 100644 --- a/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.ts +++ b/eda/eda_app/src/app/module/pages/dashboard/global-filter-dialog/global-filter-dialog.component.ts @@ -256,8 +256,11 @@ export class GlobalFilterDialogComponent implements OnInit, OnDestroy { const pathList = this.globalFilter.pathList; if (this.globalFilter.selectedTable.table_name !== table_id.split('.')[0]) { - this.alertService.addWarning(`Invalid path for selected filter`); - pathList[panel.id].selectedTableNodes = undefined; + this.alertService.addWarning($localize`:@@invalidPathForm: Ruta incorrecta para el filtro seleccionado`); + setTimeout(() => { + pathList[panel.id].table_id = null; + pathList[panel.id].selectedTableNodes = undefined; + }, 100); } else { pathList[panel.id].table_id = table_id; pathList[panel.id].path = node.joins || []; @@ -300,7 +303,7 @@ export class GlobalFilterDialogComponent implements OnInit, OnDestroy { } public isEmpty(obj: any): boolean { - return !obj || Object.keys(obj).length === 0; + return Object.keys(obj||{}).length === 0; } private validateGlobalFilter(): boolean { diff --git a/eda/eda_app/src/locale/messages.ca.xlf b/eda/eda_app/src/locale/messages.ca.xlf index c304e8a50..cf8f6b3da 100644 --- a/eda/eda_app/src/locale/messages.ca.xlf +++ b/eda/eda_app/src/locale/messages.ca.xlf @@ -4270,6 +4270,10 @@ No es pot eliminar la columna perquè hi ha vinculat un Filtre + + Ruta incorrecta para el filtro seleccionado + Ruta incorrecte per el filtre seleccionat + diff --git a/eda/eda_app/src/locale/messages.en.xlf b/eda/eda_app/src/locale/messages.en.xlf index 9c4347fba..4742f38f5 100644 --- a/eda/eda_app/src/locale/messages.en.xlf +++ b/eda/eda_app/src/locale/messages.en.xlf @@ -4244,6 +4244,10 @@ Can not remove this column cause there is a GlobalFilter linked + + Ruta incorrecta para el filtro seleccionado + Invalid path for selected filter + diff --git a/eda/eda_app/src/locale/messages.es.xlf b/eda/eda_app/src/locale/messages.es.xlf index 740b73297..4c73a3947 100644 --- a/eda/eda_app/src/locale/messages.es.xlf +++ b/eda/eda_app/src/locale/messages.es.xlf @@ -4269,6 +4269,11 @@ No se puede eliminar la columna porque hay vinculado un Filtro No se puede eliminar la columna porque hay vinculado un Filtro + + + Ruta incorrecta para el filtro seleccionado + Ruta incorrecta para el filtro seleccionado +