Skip to content

Commit

Permalink
$mol_view_tree2 refactor, hyoo-ru/mam_mol#646
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Dec 3, 2023
1 parent 3c27307 commit 3112d8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions animal/edit/edit.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ $hyoo_shelter_animal_edit $mol_page
enabled <= enabled
<= Card_field $mol_form_field
name \Номер карточки
Content <= Сard $mol_string
Content <= Card $mol_string
value?val <=> card?val \
enabled <= enabled
<= Chip_field $mol_form_field
name \Номер чипа
Content <= Сhip $mol_string
Content <= Chip $mol_string
value?val <=> chip?val \
enabled <= enabled
<= Cage_field $mol_form_field
Expand Down
4 changes: 2 additions & 2 deletions shelter/shelter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ namespace $ {
id: $mol_data_integer,
weight: $mol_data_number,
readyForDepart: $mol_data_boolean,
gender: $mol_data_variant( $mol_data_const( 'Male' ), $mol_data_const( 'Female' ) ),
kind: $mol_data_variant( $mol_data_const( 'Cat' ), $mol_data_const( 'Dog' ) ),
gender: $mol_data_optional($mol_data_variant( $mol_data_const( 'Male' as const), $mol_data_const( 'Female' as const) )),
kind: $mol_data_optional($mol_data_variant( $mol_data_const( 'Cat' as const), $mol_data_const( 'Dog' as const) )),
size: $mol_data_string,
tail: $mol_data_string,
shelterId: $mol_data_number,
Expand Down

0 comments on commit 3112d8c

Please sign in to comment.