change add_site and delete site logic
This commit is contained in:
parent
9af6a2cf4b
commit
e4edb5a4d1
1 changed files with 3 additions and 10 deletions
|
|
@ -53,22 +53,15 @@ namespace $.$$ {
|
||||||
|
|
||||||
@$mol_action
|
@$mol_action
|
||||||
add_site(url: string, title: string) {
|
add_site(url: string, title: string) {
|
||||||
// const new_site = this.home().Sites(null)!.make(null)
|
const new_site = this.home().Sites(null)!.make(null)
|
||||||
// new_site.land().give(null, $hyoo_crus_rank_rule)
|
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.url(null)!.val(url)
|
||||||
new_site.title(null)!.val(title)
|
new_site.title(null)!.val(title)
|
||||||
}
|
}
|
||||||
|
|
||||||
target_remove(prop: $hd_canary_app_home_site) {
|
target_remove(prop: $hd_canary_app_home_site) {
|
||||||
const current = this.home().Sites(null)!.items_vary()
|
this.home().Sites(null)!.cut(prop.ref())
|
||||||
const new_list = current.filter(item => item != prop.ref())
|
|
||||||
this.home().Sites(null)!.items_vary(new_list)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// наш id клиента
|
// наш id клиента
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue