From cfe0b3e630adddd0c49e797a4f0824c7342d5548 Mon Sep 17 00:00:00 2001 From: ChaotiCryptidz Date: Sun, 24 Apr 2022 12:49:47 +0100 Subject: [PATCH] change new kv action from view to edit --- src/ui/pages/Secrets/KeyValue/KeyValueNew.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/pages/Secrets/KeyValue/KeyValueNew.tsx b/src/ui/pages/Secrets/KeyValue/KeyValueNew.tsx index e2cc69b..7809ada 100644 --- a/src/ui/pages/Secrets/KeyValue/KeyValueNew.tsx +++ b/src/ui/pages/Secrets/KeyValue/KeyValueNew.tsx @@ -8,7 +8,7 @@ import { Margin } from "../../../elements/Margin"; import { SecretTitleElement } from "../SecretTitleElement"; import { TextInput } from "../../../elements/forms/TextInput"; import { combineKVPath, splitKVPath } from "./kvPathUtils"; -import { kvViewURL } from "../../pageLinks"; +import { kvEditURL } from "../../pageLinks"; import { route } from "preact-router"; import i18next from "i18next"; @@ -35,7 +35,7 @@ export class KeyValueNew extends Component { const combined = combineKVPath(secretPath, path); - route(kvViewURL(baseMount, combined.secretPath, combined.secretItem)); + route(kvEditURL(baseMount, combined.secretPath, combined.secretItem)); } catch (e: unknown) { const error = e as Error; this.errorMessageRef.current.setErrorMessage(error.message);