refactor: save request handle in tabs and remove tabs related logic from personal provider definition

This commit is contained in:
jamesgeorge007
2024-02-09 13:48:19 +05:30
parent 1abbdb0fe0
commit c1a8a871d2
9 changed files with 133 additions and 166 deletions

View File

@@ -3,8 +3,21 @@ import { HoppRESTResponse } from "../types/HoppRESTResponse"
import { HoppTestResult } from "../types/HoppTestResult"
import { RESTOptionTabs } from "~/components/http/RequestOptions.vue"
import { HoppInheritedProperty } from "../types/HoppInheritedProperties"
import { HandleRef } from "~/services/new-workspace/handle"
import { WorkspaceRequest } from "~/services/new-workspace/workspace"
export type HoppRESTSaveContext =
| {
/**
* The origin source of the request
*/
// TODO: Make this `user-collection` after porting all usages
originLocation: "workspace-user-collection"
/**
* Handle to a request in the workspace
*/
requestHandle: HandleRef<WorkspaceRequest>
}
| {
/**
* The origin source of the request