aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-07-10 12:58:21 +0000
committerEmiliano Ciavatta2020-07-10 12:58:21 +0000
commit0f0a28c81cc73d2eade3188ba470343f16dc5478 (patch)
tree9f8e0d941bb033b915cb2aea962faede6e60aa6d /frontend
parent9a23bd5523b06c0da2731a332ad7b329c8e3355f (diff)
To be removed
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/components/ConnectionContent.js2
-rw-r--r--frontend/src/views/Connections.js8
2 files changed, 7 insertions, 3 deletions
diff --git a/frontend/src/components/ConnectionContent.js b/frontend/src/components/ConnectionContent.js
index ece4bd6..2028158 100644
--- a/frontend/src/components/ConnectionContent.js
+++ b/frontend/src/components/ConnectionContent.js
@@ -93,7 +93,7 @@ class ConnectionContent extends Component {
<pre>{payload}</pre>
- {redirect}
+ {/*{redirect}*/}
</div>
diff --git a/frontend/src/views/Connections.js b/frontend/src/views/Connections.js
index 5548c4c..e4a7b01 100644
--- a/frontend/src/views/Connections.js
+++ b/frontend/src/views/Connections.js
@@ -37,6 +37,8 @@ class Connections extends Component {
this.props.onSelected(c);
}
+
+
handleScroll(e) {
let relativeScroll = e.currentTarget.scrollTop / (e.currentTarget.scrollHeight - e.currentTarget.clientHeight);
if (!this.state.loading && relativeScroll > this.scrollBottomThreashold) {
@@ -57,7 +59,9 @@ class Connections extends Component {
async loadConnections(params) {
let url = "/api/connections";
if (params !== undefined) {
- url += "?" + objectToQueryString(params);
+ const urlParams = new URLSearchParams(window.location.search);
+ let obj = Object.fromEntries(urlParams.entries());
+ url += "?" + objectToQueryString({...params, ...obj}); // TODO: remove this shit
}
this.setState({loading: true});
let res = await axios.get(url);
@@ -140,7 +144,7 @@ class Connections extends Component {
</tbody>
</Table>
- {redirect}
+ {/*{redirect}*/}
</div>
);
}