public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] ui: NodeInfo: add link to repositories
@ 2021-07-12 11:54 Dominik Csapak
  2021-07-13 10:45 ` Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2021-07-12 11:54 UTC (permalink / raw)
  To: pbs-devel

to guide the user to the repository panel from the dashboard

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 www/panel/NodeInfo.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/panel/NodeInfo.js b/www/panel/NodeInfo.js
index ff96e8fc..d05a53d1 100644
--- a/www/panel/NodeInfo.js
+++ b/www/panel/NodeInfo.js
@@ -46,7 +46,9 @@ Ext.define('PBS.NodeInfoPanel', {
 	    },
 	    repoStatusMessage: function(get) {
 		const status = get('repoStatus');
-		return Proxmox.Utils.formatNodeRepoStatus(status, 'Proxmox Backup Server');
+		let link = '#pbsServerAdministration:aptrepositories';
+		let icon = ` <a href="${link}"><i class="fa fa-link"></i></a>`;
+		return Proxmox.Utils.formatNodeRepoStatus(status, 'Proxmox Backup Server') + icon;
 	    },
 	},
     },
-- 
2.30.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [pbs-devel] [PATCH proxmox-backup] ui: NodeInfo: add link to repositories
  2021-07-12 11:54 [pbs-devel] [PATCH proxmox-backup] ui: NodeInfo: add link to repositories Dominik Csapak
@ 2021-07-13 10:45 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2021-07-13 10:45 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Dominik Csapak

On 12.07.21 13:54, Dominik Csapak wrote:
> to guide the user to the repository panel from the dashboard
> 
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
>  www/panel/NodeInfo.js | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/www/panel/NodeInfo.js b/www/panel/NodeInfo.js
> index ff96e8fc..d05a53d1 100644
> --- a/www/panel/NodeInfo.js
> +++ b/www/panel/NodeInfo.js
> @@ -46,7 +46,9 @@ Ext.define('PBS.NodeInfoPanel', {
>  	    },
>  	    repoStatusMessage: function(get) {
>  		const status = get('repoStatus');
> -		return Proxmox.Utils.formatNodeRepoStatus(status, 'Proxmox Backup Server');
> +		let link = '#pbsServerAdministration:aptrepositories';
> +		let icon = ` <a href="${link}"><i class="fa fa-link"></i></a>`;

avoid over-general variable names, `repoLink` (and the link inline).

But actually I do not like this being a normal link, which gets purple once visited.
Also the symbol isn't really clear in this context, a `fa-arrow-circle-o-right` could be easier
to get the "goto" meaning, then some hover feedback would be also good (if we keep this
icon only I'd do similar to what we do for the action-column icons in the datastore content
panel. A tooltip could then be good to, to underline what this clickable element actually
does.



> +		return Proxmox.Utils.formatNodeRepoStatus(status, 'Proxmox Backup Server') + icon;
>  	    },
>  	},
>      },
> 





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-13 10:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 11:54 [pbs-devel] [PATCH proxmox-backup] ui: NodeInfo: add link to repositories Dominik Csapak
2021-07-13 10:45 ` Thomas Lamprecht

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