@@ -609,7 +609,6 @@ def _prop_value_table(server):
609609 v_if = "edit_mode == all_edit_modes['edit_mode'] && !json_schema['properties']?.[selected_section_name]?.['required']?.includes(item_key)" ,
610610 tag = "a" ,
611611 v_bind = "{...props, target: '_blank'}" ,
612- v_tooltip = "Delete this property" ,
613612 click = (server .controller .delete_row , "[item_key]" ),
614613 icon = True ,
615614 ripple = False ,
@@ -656,7 +655,6 @@ def _prop_value_table(server):
656655 with vuetify .VBtn (
657656 tag = "a" ,
658657 v_bind = "{...props, target: '_blank'}" ,
659- v_tooltip = "Add this property" ,
660658 click = (server .controller .add_row ),
661659 icon = True ,
662660 ripple = False ,
@@ -669,38 +667,18 @@ def _prop_value_table(server):
669667 size = 26 ,
670668 color = "#4a4" ,
671669 )
672- item_error = "wada"
673- (
674- vuetify .VAutocomplete (
675- v_model = ("add_key" ,),
676- update_modelValue = "flushState('general_sections')" ,
677- # bind the enum array as items
678- items = (
679- "Object.keys(json_schema['properties']?.[selected_section_name]?.['properties'])" ,
680- ),
681- dense = True ,
682- solo = True ,
683- filterable = True ,
684- classes = "pb-1 ml-16" ,
685- color = f"{ item_error } && error" ,
686- bg_color = (f"{ item_error } ? 'rgba(255, 0, 0, 0.2)' : ''" ,),
687- error_messages = (
688- f"{ item_error } ?.length > 100 ? { item_error } ?.slice(0, 97)+' ...' : { item_error } " ,
689- ),
670+ vuetify .VAutocomplete (
671+ v_model = ("add_key" ,),
672+ update_modelValue = "flushState('general_sections')" ,
673+ # bind the enum array as items
674+ items = (
675+ "Object.keys(json_schema['properties']?.[selected_section_name]?.['properties'])" ,
690676 ),
677+ dense = True ,
678+ solo = True ,
679+ filterable = True ,
680+ classes = "pb-1 ml-16" ,
691681 )
692- with vuetify .VTooltip (location = "bottom" ):
693- with html .Template (v_slot_activator = "{ props }" ):
694- html .Span (v_text = ("item_key" ,), v_bind = "props" )
695- html .P (
696- v_text = (
697- "json_schema['properties']?.[selected_section_name]?.['properties']?.[item_key]?.['description'] || 'no description'" ,
698- ),
699- v_if = (
700- "json_schema['properties']?.[selected_section_name]?.['properties']?.[item_key]?.['description']" ,
701- ),
702- style = "max-width: 450px;" ,
703- )
704682 html .Td (
705683 v_if = "edit_mode == all_edit_modes['view_mode']" ,
706684 v_text = ("item_val" ,),
0 commit comments