change add_site and delete site logic

This commit is contained in:
koplenov 2025-08-19 02:16:41 +03:00
parent 9af6a2cf4b
commit e4edb5a4d1

View file

@ -53,22 +53,15 @@ namespace $.$$ {
@$mol_action
add_site(url: string, title: string) {
// const new_site = this.home().Sites(null)!.make(null)
// new_site.land().give(null, $hyoo_crus_rank_rule)
const new_site = this.home().Sites(null)!.make(null)
new_site.land().give(null, $hyoo_crus_rank_post("just"))
// new_site.url(null)!.val(url)
// new_site.title(null)!.val(title)
const new_site = this.home().Sites(null)!.make({ '': $hyoo_crus_rank_rule })
new_site.url(null)!.val(url)
new_site.title(null)!.val(title)
}
target_remove(prop: $hd_canary_app_home_site) {
const current = this.home().Sites(null)!.items_vary()
const new_list = current.filter(item => item != prop.ref())
this.home().Sites(null)!.items_vary(new_list)
this.home().Sites(null)!.cut(prop.ref())
}
// наш id клиента