Skip to content

Commit 9c6f39f

Browse files
committed
Revert "feat: add compliance report viewer"
This reverts commit 1ff809d.
1 parent 84f8e7c commit 9c6f39f

File tree

3 files changed

+2
-43
lines changed

3 files changed

+2
-43
lines changed

backend/src/main/resources/config/liquibase/changelog/20241120001_update_compliance_menu.xml

Lines changed: 0 additions & 20 deletions
This file was deleted.

frontend/src/app/shared/components/auth/login/login.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {UtmToastService} from '../../../alert/utm-toast.service';
1212
import {MenuBehavior} from '../../../behaviors/menu.behavior';
1313
import {ThemeChangeBehavior} from '../../../behaviors/theme-change.behavior';
1414
import {ADMIN_DEFAULT_EMAIL, ADMIN_ROLE, DEMO_URL, USER_ROLE} from '../../../constants/global.constant';
15-
import {extractQueryParamsForNavigation, stringParamToQueryParams} from '../../../util/query-params-to-filter.util';
15+
import {stringParamToQueryParams} from '../../../util/query-params-to-filter.util';
1616
import {PasswordResetInitComponent} from '../password-reset/init/password-reset-init.component';
1717
import {StateStorageService} from "../../../../core/auth/state-storage.service";
1818

@@ -102,8 +102,7 @@ export class LoginComponent implements OnInit {
102102
});
103103
});
104104
} else {
105-
const { path, queryParams } = extractQueryParamsForNavigation(url);
106-
this.router.navigate([path], {queryParams});
105+
this.router.navigate([route]);
107106
}
108107
}
109108
} else {

frontend/src/app/shared/util/query-params-to-filter.util.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -162,23 +162,3 @@ export function getIndexPattern(param: string) {
162162
}
163163
return '';
164164
}
165-
166-
export function extractQueryParamsForNavigation(url: string): { path: string, queryParams: Record<string, string> } {
167-
const queryParamsStart = url.indexOf('?');
168-
169-
if (queryParamsStart !== -1) {
170-
const path = url.slice(0, queryParamsStart); // Obtén la ruta base
171-
const queryParamsString = url.slice(queryParamsStart + 1);
172-
const searchParams = new URLSearchParams(queryParamsString);
173-
const queryParams: Record<string, string> = {};
174-
175-
searchParams.forEach((value, key) => {
176-
queryParams[key] = value; // No decodifiques nada aquí
177-
});
178-
179-
return { path, queryParams };
180-
}
181-
182-
return { path: url, queryParams: {} }; // Si no hay parámetros, devuelve solo la ruta base
183-
}
184-

0 commit comments

Comments
 (0)