Skip to content

Commit

Permalink
Added cookie tab when preparing request
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-cpsn committed Feb 6, 2024
1 parent 4663bb2 commit 64b8a87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/request_ui/param_tabs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ pub enum RequestParamsTabs {
#[strum(to_string = "Headers")]
Headers,
#[strum(to_string = "Body")]
Body
Body,
#[strum(to_string = "Cookies")]
Cookies
}

pub fn next_request_tab(current_tab: RequestParamsTabs) -> RequestParamsTabs {
match current_tab {
RequestParamsTabs::Params => RequestParamsTabs::Auth,
RequestParamsTabs::Auth => RequestParamsTabs::Headers,
RequestParamsTabs::Headers => RequestParamsTabs::Body,
RequestParamsTabs::Body => RequestParamsTabs::Params
RequestParamsTabs::Body => RequestParamsTabs::Cookies,
RequestParamsTabs::Cookies => RequestParamsTabs::Params
}
}
1 change: 1 addition & 0 deletions src/app/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ impl App<'_> {
}
}
}
RequestParamsTabs::Cookies => {}
}

// REQUEST RESULT LAYOUT
Expand Down

0 comments on commit 64b8a87

Please sign in to comment.