From e4edb5a4d14cb426bf1fc3e2d06b0e9917978350 Mon Sep 17 00:00:00 2001 From: koplenov Date: Tue, 19 Aug 2025 02:16:41 +0300 Subject: [PATCH] change add_site and delete site logic --- app/monitor/monitor.view.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/app/monitor/monitor.view.ts b/app/monitor/monitor.view.ts index 36a3829..2d43417 100644 --- a/app/monitor/monitor.view.ts +++ b/app/monitor/monitor.view.ts @@ -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 клиента