Add archive page command
This commit is contained in:
@@ -106,6 +106,10 @@ pub(crate) fn history_url() -> Result<UrlText, CoreError> {
|
||||
internal_page_url("ely://history")
|
||||
}
|
||||
|
||||
pub(crate) fn archive_url() -> Result<UrlText, CoreError> {
|
||||
internal_page_url("ely://archive")
|
||||
}
|
||||
|
||||
pub(crate) fn task_manager_url() -> Result<UrlText, CoreError> {
|
||||
internal_page_url("ely://task-manager")
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ use ely_domain::{CommandIntent, CommandScope, ProfileId, ProfileKind, SpaceId};
|
||||
use crate::{
|
||||
CoreError,
|
||||
navigation::{
|
||||
about_url, bookmarks_url, downloads_url, history_url, move_tab_space_name,
|
||||
about_url, archive_url, bookmarks_url, downloads_url, history_url, move_tab_space_name,
|
||||
new_private_profile_name, new_profile_name, new_space_name, plugin_detail_url, plugins_url,
|
||||
reading_list_url, search_url, settings_page_url, settings_url, space_icon,
|
||||
switch_profile_name, sync_status_url, task_manager_url,
|
||||
@@ -137,6 +137,10 @@ impl BrowserCore {
|
||||
self.open_tab(history_url()?);
|
||||
Ok(true)
|
||||
}
|
||||
"archive" | "open-archive" | "open archive" => {
|
||||
self.open_tab(archive_url()?);
|
||||
Ok(true)
|
||||
}
|
||||
"task-manager" | "tasks" | "open-task-manager" | "open task manager" => {
|
||||
self.open_tab(task_manager_url()?);
|
||||
Ok(true)
|
||||
|
||||
Reference in New Issue
Block a user