{fmt_to_fragments(_("Clicking \"Launch remote viewer\" will download a .vv file and launch $0."), Remote Viewer)}
+ {needsTunnel(address, serverAddress) &&
+ {_("SSH tunnel needs to be set up on client:")}
+
{fmt_to_fragments(_("$0 is available for most operating systems. To install it, search for it in GNOME Software or run the following:"), Remote Viewer)}
diff --git a/src/components/vm/consoles/utils.js b/src/components/vm/consoles/utils.js new file mode 100644 index 000000000..dbc46b07c --- /dev/null +++ b/src/components/vm/consoles/utils.js @@ -0,0 +1,43 @@ +/* + * This file is part of Cockpit. + * + * Copyright (C) 2023 Red Hat, Inc. + * + * Cockpit is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or + * (at your option) any later version. + * + * Cockpit is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Cockpit; If not, see