From bbe53c41abdef629cfb43d6ef99a5684a7774ea9 Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Thu, 18 Nov 2021 13:22:55 +0100 Subject: [PATCH] F #5422: Add view yaml for marketplace apps (#1585) --- install.sh | 1 + .../sunstone/admin/marketplace-app-tab.yaml | 69 +++++++++++++++++++ .../src/client/apps/sunstone/routesOne.js | 4 +- 3 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 src/fireedge/etc/sunstone/admin/marketplace-app-tab.yaml diff --git a/install.sh b/install.sh index e67e1af366..a3d0da4411 100755 --- a/install.sh +++ b/install.sh @@ -2865,6 +2865,7 @@ FIREEDGE_SUNSTONE_ETC="src/fireedge/etc/sunstone/sunstone-server.conf \ FIREEDGE_SUNSTONE_ETC_VIEW_ADMIN="src/fireedge/etc/sunstone/admin/cluster-tab.yaml \ src/fireedge/etc/sunstone/admin/host-tab.yaml \ + src/fireedge/etc/sunstone/admin/marketplace-app-tab.yaml \ src/fireedge/etc/sunstone/admin/vm-tab.yaml \ src/fireedge/etc/sunstone/admin/vm-template-tab.yaml" diff --git a/src/fireedge/etc/sunstone/admin/marketplace-app-tab.yaml b/src/fireedge/etc/sunstone/admin/marketplace-app-tab.yaml new file mode 100644 index 0000000000..bf498bf990 --- /dev/null +++ b/src/fireedge/etc/sunstone/admin/marketplace-app-tab.yaml @@ -0,0 +1,69 @@ +# -------------------------------------------------------------------------- # +# Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + +--- +# This file describes the information and actions available in the App tab + +# Resource + +resource_name: "MARKETPLACE-APP" + +# Actions - Which buttons are visible to operate over the resources + +actions: + refresh: true + create_dialog: true + import_dialog: true + download: true + rename: true + chown: true + chgrp: true + chmod: true + enable: true + disable: true + delete: true + +# Filters - List of criteria to filter the resources + +filters: + label: true + state: true + type: true + marketplace: true + + +# Info Tabs - Which info tabs are used to show extended information + +info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + + template: + enabled: true diff --git a/src/fireedge/src/client/apps/sunstone/routesOne.js b/src/fireedge/src/client/apps/sunstone/routesOne.js index 6f1766ba88..13a5b9019d 100644 --- a/src/fireedge/src/client/apps/sunstone/routesOne.js +++ b/src/fireedge/src/client/apps/sunstone/routesOne.js @@ -115,8 +115,8 @@ export const PATH = { DETAIL: '/marketplace/:id' }, MARKETPLACE_APPS: { - LIST: '/marketplaces-app', - DETAIL: '/marketplaces-app/:id' + LIST: '/marketplace-app', + DETAIL: '/marketplace-app/:id' } }, NETWORK: {