feat: persist request url changes upon saving them

This commit is contained in:
Anoop M D
2022-03-16 01:00:35 +05:30
parent 7370ec63d1
commit e471d94fbc
7 changed files with 59 additions and 17 deletions

View File

@@ -63,15 +63,6 @@ const RequestTabPanel = () => {
};
}, [dragging, leftPaneWidth]);
const onUrlChange = (value) => {
storeDispatch({
type: actions.REQUEST_URL_CHANGED,
url: value,
requestTab: focusedTab,
collectionUid: collection ? collection.uid : null
});
};
const onGraphqlQueryChange = (value) => {
storeDispatch({
type: actions.REQUEST_GQL_QUERY_CHANGED,
@@ -105,6 +96,15 @@ const RequestTabPanel = () => {
let flattenedItems = flattenItems(collection.items);
let item = findItem(flattenedItems, activeRequestTabUid);
const onUrlChange = (value) => {
storeDispatch({
type: actions.REQUEST_URL_CHANGED,
url: value,
itemUid: item.uid,
collectionUid: collection ? collection.uid : null
});
};
const runQuery = async () => {
storeDispatch({
type: actions.SEND_REQUEST,