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 29d80fc commit ab75b60
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion person/page/page.view.tree
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$hyoo_realworld_person_page $mol_page
title @ \Profile
section?name \
section? null
tools /
- <= Sign_out $mol_button_minor
title \
Expand Down
2 changes: 1 addition & 1 deletion realworld.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $hyoo_realworld $mol_book2
Profile $hyoo_realworld_person_page
section?name <=> section?name \
Person $hyoo_realworld_person_page
sections *
sections *$mol_page
articles <= feed_current $hyoo_realworld_feed_page
article <= article_current $hyoo_realworld_article_page
edit <= edit_current $hyoo_realworld_article_edit
Expand Down
8 changes: 4 additions & 4 deletions realworld.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ namespace $.$$ {
return [
this.Home() ,
this.section() ? this.sections()[ this.section()! ] : this.sections().articles ,
this.tag() && this.feed_current() ,
this.tag() ? this.feed_current() : null,
this.article() && this.article_current() ,
this.edit() && (
this.edit() ? (
this.signed() ? this.edit_current() : this.sections().sign_in
),
) : null,
this.person() ? this.Person() : null ,
].filter( Boolean )
].filter( $mol_guard_defined )
}

}
Expand Down

0 comments on commit ab75b60

Please sign in to comment.