[pdm-devel] [PATCH datacenter-manager 2/2] ui: disable documentation button
Dominik Csapak
d.csapak at proxmox.com
Thu Dec 19 10:33:47 CET 2024
and add a 'coming soon' tooltip. Re-enable when we ship documentation.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
ui/src/top_nav_bar.rs | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/ui/src/top_nav_bar.rs b/ui/src/top_nav_bar.rs
index 3a9f16c..70ba524 100644
--- a/ui/src/top_nav_bar.rs
+++ b/ui/src/top_nav_bar.rs
@@ -10,7 +10,7 @@ use yew::html::{IntoEventCallback, IntoPropValue};
use yew::virtual_dom::{VComp, VNode};
use pwt::state::{Loader, Theme, ThemeObserver};
-use pwt::widget::{Container, Row, ThemeModeSelector};
+use pwt::widget::{Button, Container, Row, ThemeModeSelector, Tooltip};
use proxmox_yew_comp::common_api_types::TaskListItem;
use proxmox_yew_comp::RunningTasksButton;
@@ -171,7 +171,17 @@ impl Component for PdmTopNavBar {
.class("pwt-align-items-center")
.gap(2)
.with_child(ThemeModeSelector::new().class("pwt-scheme-neutral-alt"))
- .with_child(HelpButton::new().class("pwt-scheme-neutral"));
+ // FIXME: implement
+ //.with_child(HelpButton::new().class("pwt-scheme-neutral"))
+ .with_child(
+ Tooltip::new(
+ Button::new(tr!("Documentation"))
+ .icon_class("fa fa-book")
+ .disabled(true)
+ .class(ColorScheme::Neutral),
+ )
+ .tip(tr!("Coming soon")),
+ );
if let Some(username) = &props.username {
button_group.add_child(
--
2.39.5
More information about the pdm-devel
mailing list