mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-12 08:58:15 +01:00
chore: cleanup
This commit is contained in:
parent
b3ac4ce644
commit
c8e679b7e0
@ -2,7 +2,6 @@ const SIDEBAR_COLLECTION_ITEM_CLICK = "SIDEBAR_COLLECTION_ITEM_CLICK";
|
|||||||
const SIDEBAR_COLLECTION_NEW_FOLDER = "SIDEBAR_COLLECTION_NEW_FOLDER";
|
const SIDEBAR_COLLECTION_NEW_FOLDER = "SIDEBAR_COLLECTION_NEW_FOLDER";
|
||||||
const SIDEBAR_COLLECTION_NEW_REQUEST = "SIDEBAR_COLLECTION_NEW_REQUEST";
|
const SIDEBAR_COLLECTION_NEW_REQUEST = "SIDEBAR_COLLECTION_NEW_REQUEST";
|
||||||
const LOAD_COLLECTIONS_FROM_IDB = "LOAD_COLLECTIONS_FROM_IDB";
|
const LOAD_COLLECTIONS_FROM_IDB = "LOAD_COLLECTIONS_FROM_IDB";
|
||||||
const COLLECTION_CREATE = "COLLECTION_CREATE";
|
|
||||||
const REQUEST_TAB_CLICK = "REQUEST_TAB_CLICK";
|
const REQUEST_TAB_CLICK = "REQUEST_TAB_CLICK";
|
||||||
const REQUEST_TAB_CLOSE = "REQUEST_TAB_CLOSE";
|
const REQUEST_TAB_CLOSE = "REQUEST_TAB_CLOSE";
|
||||||
const REQUEST_URL_CHANGED = "REQUEST_URL_CHANGED";
|
const REQUEST_URL_CHANGED = "REQUEST_URL_CHANGED";
|
||||||
@ -23,7 +22,6 @@ export default {
|
|||||||
SIDEBAR_COLLECTION_NEW_FOLDER,
|
SIDEBAR_COLLECTION_NEW_FOLDER,
|
||||||
SIDEBAR_COLLECTION_NEW_REQUEST,
|
SIDEBAR_COLLECTION_NEW_REQUEST,
|
||||||
LOAD_COLLECTIONS_FROM_IDB,
|
LOAD_COLLECTIONS_FROM_IDB,
|
||||||
COLLECTION_CREATE,
|
|
||||||
REQUEST_TAB_CLICK,
|
REQUEST_TAB_CLICK,
|
||||||
REQUEST_TAB_CLOSE,
|
REQUEST_TAB_CLOSE,
|
||||||
REQUEST_URL_CHANGED,
|
REQUEST_URL_CHANGED,
|
||||||
|
@ -122,18 +122,6 @@ const reducer = (state, action) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
case actions.COLLECTION_CREATE: {
|
|
||||||
return produce(state, (draft) => {
|
|
||||||
// todo: collection names must be unique across a user account
|
|
||||||
draft.collections = draft.collections || [];
|
|
||||||
draft.collections.push({
|
|
||||||
uid: nanoid(),
|
|
||||||
name: action.name,
|
|
||||||
items: []
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
case actions.REQUEST_TAB_CLICK: {
|
case actions.REQUEST_TAB_CLICK: {
|
||||||
return produce(state, (draft) => {
|
return produce(state, (draft) => {
|
||||||
draft.activeRequestTabUid = action.requestTab.uid;
|
draft.activeRequestTabUid = action.requestTab.uid;
|
||||||
|
Loading…
Reference in New Issue
Block a user