GUI plugins #9
1 changed files with 4 additions and 1 deletions
pinakes-ui: fix ApiClient clone to preserve auth token
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I2009ce790b3864105082997be12fe5b56a6a6964
commit
62058a7c4d
|
|
@ -26,7 +26,10 @@ pub struct ApiClient {
|
||||||
|
|
||||||
impl Clone for ApiClient {
|
impl Clone for ApiClient {
|
||||||
fn clone(&self) -> Self {
|
fn clone(&self) -> Self {
|
||||||
Self::new(&self.base_url, None)
|
Self {
|
||||||
|
client: self.client.clone(),
|
||||||
|
base_url: self.base_url.clone(),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue