diff --git a/src/sunstone/public/app/tabs/dashboard-tab.js b/src/sunstone/public/app/tabs/dashboard-tab.js index 9037617828..1a57e63b76 100644 --- a/src/sunstone/public/app/tabs/dashboard-tab.js +++ b/src/sunstone/public/app/tabs/dashboard-tab.js @@ -18,9 +18,6 @@ define(function(require) { var Locale = require('utils/locale'); var Config = require('sunstone-config'); var Sunstone = require('sunstone'); - var Notifier = require('utils/notifier'); - var OpenNebulaVM = require('opennebula/vm'); - var Accounting = require('utils/accounting'); var OpenNebula = require('opennebula'); var QuotaWidgets = require('utils/quotas/quota-widgets'); var QuotaDefaults = require('utils/quotas/quota-defaults'); diff --git a/src/sunstone/public/app/tabs/groups-tab.js b/src/sunstone/public/app/tabs/groups-tab.js index 0601bd0488..a22e1a671b 100644 --- a/src/sunstone/public/app/tabs/groups-tab.js +++ b/src/sunstone/public/app/tabs/groups-tab.js @@ -24,8 +24,7 @@ define(function(require) { var DATATABLE_ID = "dataTableGroups"; var _dialogs = [ - require('./groups-tab/dialogs/quotas'), - require('./groups-tab/dialogs/image') + require('./groups-tab/dialogs/quotas') ]; var _panels = [ diff --git a/src/sunstone/public/app/tabs/groups-tab/dialogs/image.js b/src/sunstone/public/app/tabs/groups-tab/dialogs/image.js deleted file mode 100644 index f8f1ec6d89..0000000000 --- a/src/sunstone/public/app/tabs/groups-tab/dialogs/image.js +++ /dev/null @@ -1,84 +0,0 @@ -/* -------------------------------------------------------------------------- */ -/* 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. */ -/* -------------------------------------------------------------------------- */ - -define(function(require) { - /* - DEPENDENCIES - */ - - var BaseDialog = require('utils/dialogs/dialog'); - var TemplateHTML = require('hbs!./image/html'); - var Locale = require('utils/locale'); - - /* - CONSTANTS - */ - - var DIALOG_ID = require('./image/dialogId'); - var TAB_ID = require('../tabId'); - var RESOURCE = "Group"; - var XML_ROOT = "GROUP"; - - /* - CONSTRUCTOR - */ - - function Dialog() { - this.dialogId = DIALOG_ID; - - this.element = undefined; - - BaseDialog.call(this); - } - - Dialog.DIALOG_ID = DIALOG_ID; - Dialog.prototype = Object.create(BaseDialog.prototype); - Dialog.prototype.constructor = Dialog; - Dialog.prototype.html = _html; - Dialog.prototype.onShow = _onShow; - Dialog.prototype.setup = _setup; - Dialog.prototype.setParams = _setParams; - - return Dialog; - - /* - FUNCTION DEFINITIONS - */ - - function _html() { - return TemplateHTML({ - 'dialogId': this.dialogId, - 'element': this.element - }); - } - - function _setup(context) { - var that = this; - return false; - } - - /** - * @param {object} params - * - params.element : group object, or empty object {} - */ - function _setParams(params) { - this.element = params.element; - } - - function _onShow(context) { - return false; - } -}); diff --git a/src/sunstone/public/app/tabs/groups-tab/dialogs/image/dialogId.js b/src/sunstone/public/app/tabs/groups-tab/dialogs/image/dialogId.js deleted file mode 100644 index 507cd2042b..0000000000 --- a/src/sunstone/public/app/tabs/groups-tab/dialogs/image/dialogId.js +++ /dev/null @@ -1,19 +0,0 @@ -/* -------------------------------------------------------------------------- */ -/* 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. */ -/* -------------------------------------------------------------------------- */ - -define(function(require){ - return 'groupImagesDialog'; -}); diff --git a/src/sunstone/public/app/tabs/groups-tab/dialogs/image/html.hbs b/src/sunstone/public/app/tabs/groups-tab/dialogs/image/html.hbs deleted file mode 100644 index f522b3af08..0000000000 --- a/src/sunstone/public/app/tabs/groups-tab/dialogs/image/html.hbs +++ /dev/null @@ -1,30 +0,0 @@ -{{! -------------------------------------------------------------------------- }} -{{! 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. }} -{{! -------------------------------------------------------------------------- }} - -
{{tr "Allow users in this group to use the following Sunstone views"}} - + {{tr "Not required. Defaults to the one set in sunstone-views.yaml"}} @@ -90,10 +90,9 @@
{{name}} {{tr "View"}} - {{#if description}} + {{#if description}} {{description}} {{/if}} | - + | - + |