Sectioning unsupported Toollist

This commit is contained in:
sanjayk03-dev
2024-11-25 12:02:26 +05:30
parent cba5661b5e
commit cb92d21961
2 changed files with 11 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ script#tool-view-template(type="text/x-template")
label(for="tool-type") tool-type
select(v-model="config.tool['selected-tool']", name="tool-type", @change="change_selected_tool")
option(v-for="tool in toolList", :value="tool.id", :disabled="tool.disabled") {{tool.name}}
option(v-for="tool in toolList", :value="tool.id", :disabled="tool.disabled", :class="{ 'heading-option': tool.disabled }") {{tool.name}}
templated-input(v-for="templ in template.tool",
:name="$key", v-if="show_tool_settings($key)"

View File

@@ -1255,3 +1255,13 @@ tt.save
.input-field
margin-top 10px
select .heading-option
font-weight bold
font-style italic
background-color #f0f0f0
color #555
padding 5px
cursor default
select .heading-option + option
margin-top 5px