We now hide the new namespace dropdown selector when
there is only 1 namespace, or when we are on swarm
This is also hidden in the function create page and
the function detail page
Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
This allows a uswer to select a non-standard (not openfaas-fn)
namespace from the UI to deploy a function into.
Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
This PR adds a namespace dropdown for the openfaas
namespaces. If a user has non-default namespaces
installed then a user can select that namespace,
view functions in that namespace, invoke them from
the UI and delete them from that namespace.
Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
The customize button was redundant to the custom tab
This could lead to confusion with the user experience,
so the additional button has been removed.
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
Adding additional inputs for Environment variables, Secrets,
Labels, and annotations so that more advanced functions can
be deployed through the UI.
This also allows more advanced functions to be provided via
the store. Allowing modification to secret values, and
environment variables which will allow functions like a
Slack Bot function to be deployed through the store adn
configured with an environment variable
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
This change validates manual input to the gateway UI when deploying
new functions. This is to prevent poor user experience when attempting
to deploy a function manually from the UI.
The validation check on the function name is the same pattern that
is used in the CLI to ensure that when the deploy button is pressed,
the function will not fail validation.
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
This minor fix selects the 'Download' radio button by default if the
function has a label with `com.openfaas.ui.ext`.
Closes#827
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
This change adds a function URL field to the UI and a 'copy to
clipboard' button next to it. If the browser does not support the copy
command, the copy icon will be hidden.
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
Fixed the UI so that when an error occurs, the tab automatically changes
to the manual tab in order to show the errors.
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
window.crypto is throwing an error on IE11
which required a modification to use window.msCrypto
instead in case of running on IE11
Signed-off-by: Ivana Yovcheva <iyovcheva@vmware.com>
* This feature fetches function catalogs from openfaas/store and makes
one-click deploy easy
* You can switch between "From Store" or "Manually" by tabs
* Added icon to "Deploy New Function" button
* Added function search feature to the main UI
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
reverted fixed tabs
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
**What**
- Add a simple sinner when the function is invoked
- Disable the invoke button until the request returns
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>