mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
fix: Use "data" scheme when creating parameters from the site (#3732)
Fixes #3691.
This commit is contained in:
@ -54,8 +54,8 @@ type Parameter struct {
|
|||||||
Scope ParameterScope `json:"scope" table:"scope"`
|
Scope ParameterScope `json:"scope" table:"scope"`
|
||||||
ScopeID uuid.UUID `json:"scope_id" table:"scope id"`
|
ScopeID uuid.UUID `json:"scope_id" table:"scope id"`
|
||||||
Name string `json:"name" table:"name"`
|
Name string `json:"name" table:"name"`
|
||||||
SourceScheme ParameterSourceScheme `json:"source_scheme" table:"source scheme"`
|
SourceScheme ParameterSourceScheme `json:"source_scheme" table:"source scheme" validate:"ne=none"`
|
||||||
DestinationScheme ParameterDestinationScheme `json:"destination_scheme" table:"destination scheme"`
|
DestinationScheme ParameterDestinationScheme `json:"destination_scheme" table:"destination scheme" validate:"ne=none"`
|
||||||
CreatedAt time.Time `json:"created_at" table:"created at"`
|
CreatedAt time.Time `json:"created_at" table:"created at"`
|
||||||
UpdatedAt time.Time `json:"updated_at" table:"updated at"`
|
UpdatedAt time.Time `json:"updated_at" table:"updated at"`
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
|
|||||||
createRequests.push({
|
createRequests.push({
|
||||||
name: schema.name,
|
name: schema.name,
|
||||||
destination_scheme: schema.default_destination_scheme,
|
destination_scheme: schema.default_destination_scheme,
|
||||||
source_scheme: schema.default_source_scheme,
|
source_scheme: "data",
|
||||||
source_value: value,
|
source_value: value,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user