public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager 2/2] ui: disable documentation button
Date: Thu, 19 Dec 2024 10:33:47 +0100	[thread overview]
Message-ID: <20241219093347.900120-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20241219093347.900120-1-d.csapak@proxmox.com>

and add a 'coming soon' tooltip. Re-enable when we ship documentation.

Signed-off-by: Dominik Csapak <d.csapak@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



_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


  reply	other threads:[~2024-12-19  9:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-19  9:33 [pdm-devel] [PATCH datacenter-manager 1/2] ui: disable 'my settings' menu item Dominik Csapak
2024-12-19  9:33 ` Dominik Csapak [this message]
2024-12-19  9:58   ` [pdm-devel] [PATCH datacenter-manager 2/2] ui: disable documentation button Maximiliano Sandoval
2024-12-19 10:17     ` Thomas Lamprecht
2024-12-19 11:05 ` [pdm-devel] applied: [PATCH datacenter-manager 1/2] ui: disable 'my settings' menu item Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241219093347.900120-2-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal