From d1d7a800c93a13a0ba4f0573d5cdcec1cb1eab3b Mon Sep 17 00:00:00 2001 From: ingalls Date: Mon, 14 Oct 2024 15:38:17 -0600 Subject: [PATCH] Don't allow name changes --- api/routes/connection-data.ts | 1 - api/web/src/components/DataEdit.vue | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/api/routes/connection-data.ts b/api/routes/connection-data.ts index f3c73e92e..a02a9dbf3 100644 --- a/api/routes/connection-data.ts +++ b/api/routes/connection-data.ts @@ -167,7 +167,6 @@ export default async function router(schema: Schema, config: Config) { dataid: Type.Integer({ minimum: 1 }), }), body: Type.Object({ - name: Type.String(), description: Type.String(), auto_transform: Type.Optional(Type.Boolean()), mission_diff: Type.Optional(Type.Boolean()), diff --git a/api/web/src/components/DataEdit.vue b/api/web/src/components/DataEdit.vue index c1923b55e..224b83cc4 100644 --- a/api/web/src/components/DataEdit.vue +++ b/api/web/src/components/DataEdit.vue @@ -36,6 +36,7 @@ v-model='data.name' label='Data Name' description='The human readable name of the Data Layer' + :disabled='$route.params.dataid' :error='errors.name' />