guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Jumper <>
Subject Re: Extension... showing VM status?
Date Sun, 18 Mar 2018 20:23:03 GMT
On Sun, Mar 18, 2018 at 11:34 AM, Joachim Lindenberg <
> wrote:

> Hi Mike,
> my current status.html is
> <meta name="after-children" content=".name">

Using only the "name" class is going to match quite a few things. You would
be better off choosing a selector that is more specific.

> <span ng-show="item.attributes['Status']"></span>

The contents of this <span> are empty. You will need to have content for
this to have any visible effect. I'd suggest using some placeholder value
just to prove that things work, and then complete the rest of what you're
planning gradually.

hoping that “name” would stand for the connection name in the list shown to
> the user.

Rather than hope, please look through the templates within the Guacamole
source. This will tell you what you have at your disposal to match against,
and whether something you've chosen will actually be ambiguous and affect
unintended elements of the UI.

Interestingly the list of connections was truncated at the last used
> connection when I used "item.wrappedItem.attributes['Status']” following
> the initial extension example, which made me think of a javascript error..
> but with item.attributes, the javascript console is silent and I don´t know
> how to get the column displayed.

Proper choice of insertion point will have an effect here.
"item.wrappedItem" is correct, but may not actually be on the scope if you
aren't modifying the correct HTML. You'll need to look at what Guacamole is
doing within its HTML and associated controllers before you'll know what
will work and what won't. The "Shared by" tag is a good reference, as it is
known to be correct, but you should still work this into your
implementation gradually. There are too many things which might be done
incorrectly if you try to throw everything together at once.

- Mike

View raw message