Add sync status route

This commit is contained in:
2026-05-08 00:20:16 -04:00
parent 479737a8b2
commit 5196aff6a3
4 changed files with 10 additions and 7 deletions
+3 -2
View File
@@ -23,6 +23,7 @@ fn internal_page_title(url: &str) -> Option<&'static str> {
"ely://settings/plugins" => Some("Plugin Settings"),
"ely://settings/profiles" => Some("Profile Settings"),
"ely://settings/sync" => Some("Sync Settings"),
"ely://sync/status" => Some("Sync Status"),
_ => None,
}
}
@@ -90,8 +91,8 @@ pub(crate) fn settings_url() -> Result<UrlText, CoreError> {
internal_page_url("ely://settings")
}
pub(crate) fn sync_url() -> Result<UrlText, CoreError> {
internal_page_url("ely://settings/sync")
pub(crate) fn sync_status_url() -> Result<UrlText, CoreError> {
internal_page_url("ely://sync/status")
}
pub(crate) fn settings_page_url(query: &str) -> Result<Option<UrlText>, CoreError> {
@@ -4,7 +4,8 @@ use crate::{
CoreError,
navigation::{
downloads_url, history_url, move_tab_space_name, new_profile_name, new_space_name,
search_url, settings_page_url, settings_url, space_icon, switch_profile_name, sync_url,
search_url, settings_page_url, settings_url, space_icon, switch_profile_name,
sync_status_url,
},
};
@@ -110,7 +111,7 @@ impl BrowserCore {
Ok(true)
}
"sync" | "open-sync-status" | "open sync status" => {
self.open_tab(sync_url()?);
self.open_tab(sync_status_url()?);
Ok(true)
}
"close-tab" => {