mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-02 08:58:32 +00:00
feat: persist request url changes upon saving them
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user