Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/app/core/net/api/RequestManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,9 +569,13 @@ class RequestManager {
}

public async resolveMatrixSource(
filename: string
filename: string,
options: {
readonly buildResolutionPyramid?: boolean;
readonly balanceInputCoolers?: boolean;
} = {}
): Promise<MatrixSourceResolutionResponse> {
return this.sendRequest(new ResolveMatrixSourceRequest({ filename }))
return this.sendRequest(new ResolveMatrixSourceRequest({ filename, ...options }))
.then((response) => response.data)
.then((json) => new MatrixSourceResolutionResponseDTO(json).toEntity());
}
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/net/api/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ class ResolveMatrixSourceRequest implements HiCTAPIRequest {
public constructor(
public readonly options: {
readonly filename: string;
readonly buildResolutionPyramid?: boolean;
readonly balanceInputCoolers?: boolean;
}
) {}
}
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/net/dto/requestDTO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,8 @@ class ResolveMatrixSourceRequestDTO extends HiCTAPIRequestDTO<ResolveMatrixSourc
toDTO(): Record<string, unknown> {
return {
filename: this.entity.options.filename,
buildResolutionPyramid: this.entity.options.buildResolutionPyramid,
balanceInputCoolers: this.entity.options.balanceInputCoolers,
};
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/app/ui/components/upper_ribbon/FileWizardModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,10 @@ const resolveMatrixSource = async (
source.resolution = null;
source.resolving = true;
try {
const response = await props.networkManager.requestManager.resolveMatrixSource(filename);
const response = await props.networkManager.requestManager.resolveMatrixSource(filename, {
buildResolutionPyramid: buildResolutionPyramid.value,
balanceInputCoolers: balanceInputCoolers.value,
});
if (source.resolveRequestId !== requestId) {
return;
}
Expand Down
Loading