Skip to content

Commit 343da73

Browse files
author
Krzysiek_QM
committed
v.3.3.3
- finished extended Router paths
1 parent 1dd29b4 commit 343da73

3 files changed

Lines changed: 9 additions & 13 deletions

File tree

frontend/src/components/data/BucketDataTable.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,16 @@ export default function BucketDataTable(props) {
113113

114114
// active bucket has been changed
115115
useEffect(() => {
116+
// console.log(">> active bucket has been changed");
116117
setChangedBucket(true);
117118
setFiltering(false);
118119
const bucketViews = getBucketViews(activeBucket, views);
119120
if (bucketViews.length > 0 && tags != null && enums != null && views != null && columns != null) {
121+
// console.log(">> 1");
120122
const orderBy = getLastBucketOrder(activeBucket.id);
121-
123+
// console.log("lastBucketOrder: " + orderBy);
122124
if (tableRef !== null && tableRef.current !== null) {
125+
// console.log("lastBucketSearchText: " + searchText);
123126
tableRef.current.dataManager.changeSearchText(searchText);
124127
tableRef.current.dataManager.orderBy = -1;
125128
tableRef.current.dataManager.orderDirection = "";
@@ -662,6 +665,9 @@ export default function BucketDataTable(props) {
662665
}
663666
}}
664667
onOrderChange={(colId, ord) => {
668+
// console.log("onOrderChange: (colId, ord)");
669+
// console.log(colId);
670+
// console.log(ord);
665671
let order = (colId >= 0) ? {colId, ord} : null;
666672
setLastBucketOrder(activeBucket.id, order);
667673
}}

frontend/src/components/login/LoginPage.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,11 @@ export default function LoginPage() {
236236
return getProjectsPaper();
237237
case 2:
238238
const pathname = getPathname();
239-
console.log("pathname: " + pathname);
240239
if (pathname != null && pathname !== "null") {
241240
setPathname(null);
242-
console.log("> 1: redirectTo: " + pathname);
243241
return redirectTo(pathname)
244242
} else {
245243
const pathname = getProjectDataPath();
246-
console.log("> 2: redirectTo: " + pathname);
247244
return redirectTo(pathname);
248245
}
249246
case 1:

frontend/src/route/AppRouter.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,9 @@ import {getContextPath} from "../utils/UrlBuilder";
1414

1515
export default function AppRouter() {
1616

17-
const fullPathname = window.location.pathname;
18-
const pathname = fullPathname.replace(getContextPath(), "");
17+
// initial browser url without context path
18+
setPathname(window.location.pathname.replace(getContextPath(), ""));
1919

20-
console.log("----save pathname -------------------------------------------");
21-
console.log("contextPath: " + getContextPath());
22-
console.log("fullPathname: " + fullPathname);
23-
console.log("pathname: " + pathname);
24-
console.log("-------------------------------------------------------------");
25-
26-
setPathname(pathname);
2720
return (
2821
<BrowserRouter
2922
basename={getContextPath()}

0 commit comments

Comments
 (0)