Skip to content

Commit 83c5b23

Browse files
committed
Add support for Convert Index to Remote action
- Add new ConvertIndexToRemote UI component - Correct tests Signed-off-by: Tom Snuverink <tom_snuv@hotmail.com>
1 parent c59f9bb commit 83c5b23

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

public/pages/Aliases/containers/Aliases/Aliases.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ describe("<Aliases /> spec", () => {
228228
userEvent.type(getByPlaceholderText("Specify alias name"), testAliasId);
229229
userEvent.click(getByTestId("createAliasButton"));
230230
await waitFor(() => {
231-
expect(browserServicesMock.commonService.apiCaller).toBeCalledTimes(17);
231+
expect(browserServicesMock.commonService.apiCaller).toBeCalledTimes(15);
232232
expect(browserServicesMock.commonService.apiCaller).toBeCalledWith({
233233
data: {
234234
index: ["1"],

public/pages/VisualCreatePolicy/components/UIActions/ConvertIndexToRemoteUIAction.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default class ConvertIndexToRemoteUIAction implements UIAction<ConvertInd
4444
const repository = e.target.value;
4545
onChangeAction(
4646
this.clone({
47-
snapshot: {
47+
convert_index_to_remote: {
4848
...action.action.convert_index_to_remote,
4949
repository,
5050
},
@@ -64,8 +64,8 @@ export default class ConvertIndexToRemoteUIAction implements UIAction<ConvertInd
6464
const snapshot = e.target.value;
6565
onChangeAction(
6666
this.clone({
67-
snapshot: {
68-
...action.convert_index_to_remote.snapshot,
67+
convert_index_to_remote: {
68+
...action.action.convert_index_to_remote,
6969
snapshot,
7070
},
7171
})

0 commit comments

Comments
 (0)