diff --git a/src/app/components/content.rs b/src/app/components/content.rs index e5e04af8..1e9e7401 100644 --- a/src/app/components/content.rs +++ b/src/app/components/content.rs @@ -155,6 +155,8 @@ impl AsyncComponent for ContentModel { #[name(split_view)] adw::NavigationView { add = &adw::NavigationPage { + set_title: "Smart", + set_tag: Some("smart"), #[wrap(Some)] set_child = >k::Box { set_orientation: gtk::Orientation::Vertical, diff --git a/src/app/factories/service.rs b/src/app/factories/service.rs index 92f94573..160dc935 100644 --- a/src/app/factories/service.rs +++ b/src/app/factories/service.rs @@ -52,8 +52,8 @@ impl AsyncFactoryComponent for ServiceFactoryModel { set_text: &self.service.to_string(), } }, - set_action_name: Some("navigation.push"), set_action_target: Some("lists-page"), + set_action_name: Some("navigation.push"), connect_clicked[sender, index] => move |_| { sender.input(ServiceFactoryInput::Selected(index.clone())); } diff --git a/src/app/factories/task.rs b/src/app/factories/task.rs index e2d01b12..377f3db8 100644 --- a/src/app/factories/task.rs +++ b/src/app/factories/task.rs @@ -507,29 +507,6 @@ impl AsyncFactoryComponent for TaskModel { set_margin_all: 10, } } - // #[name(details)] - // add_suffix = >k::Button { - // add_css_class: "suggested-action", - // add_css_class: "circular", - // set_icon_name: icon_name::INFO, - // set_valign: gtk::Align::Center, - // set_tooltip: fl!("edit-task-details"), - // set_action_name: Some("navigation.push"), - // set_action_target: Some("task-details-page"), - // connect_clicked => TaskInput::RevealTaskDetails - // }, - // add_row = &adw::EntryRow { - // set_show_apply_button: true, - // set_enable_emoji_completion: true, - // connect_activate[sender] => move |entry| { - // let buffer = entry.text().to_string(); - // sender.input(TaskInput::ModifyTitle(buffer)); - // }, - // connect_apply[sender] => move |entry| { - // let buffer = entry.text().to_string(); - // sender.input(TaskInput::ModifyTitle(buffer)); - // }, - // } } } diff --git a/src/app/factories/task_list.rs b/src/app/factories/task_list.rs index 787bf6b4..efe508d7 100644 --- a/src/app/factories/task_list.rs +++ b/src/app/factories/task_list.rs @@ -76,8 +76,8 @@ impl AsyncFactoryComponent for TaskListFactoryModel { #[watch] set_tooltip: self.list.name().as_str(), connect_activate => TaskListFactoryInput::Select, - set_action_name: Some("navigation.push"), set_action_target: Some("content-page"), + set_action_name: Some("navigation.push"), #[name(container)] gtk::Box { add_controller = gtk::GestureClick {