diff --git a/web/src/components/logstream/schema.vue b/web/src/components/logstream/schema.vue index 19122d6896..ead313671b 100644 --- a/web/src/components/logstream/schema.vue +++ b/web/src/components/logstream/schema.vue @@ -442,7 +442,7 @@ along with this program. If not, see . " :disable="isEnvironmentSettings(props.row)" v-model="props.row.index_type" - :options="streamIndexType" + :options="isEnvironmentSettings(props.row) ? streamIndexTypeEnv : streamIndexType" :popup-content-style="{ textTransform: 'capitalize' }" color="input-border" bg-color="input-bg" @@ -888,11 +888,14 @@ export default defineComponent({ return "Other Fields"; }); + const streamIndexTypeEnv = [ + { label: "Full text search (Environment setting)", value: "fullTextSearchKeyEnv" }, + { label: "Secondary index (Environment setting)", value: "secondaryIndexKeyEnv" }, + ]; + const streamIndexType = [ { label: "Full text search", value: "fullTextSearchKey" }, { label: "Secondary index", value: "secondaryIndexKey" }, - { label: "Full text search (Environment setting)", value: "fullTextSearchKeyEnv" }, - { label: "Secondary index (Environment setting)", value: "secondaryIndexKeyEnv" }, { label: "Bloom filter", value: "bloomFilterKey" }, { label: "KeyValue partition", value: "keyPartition" }, { label: "Prefix partition", value: "prefixPartition" }, @@ -1807,6 +1810,7 @@ export default defineComponent({ markFormDirty, formDirtyFlag, streamIndexType, + streamIndexTypeEnv, disableOptions, loadingState, filterFieldFn,