1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #~: remove upgrade-top-tab (#4410)

Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
This commit is contained in:
Jorge Lobo 2020-03-24 16:49:53 +01:00 committed by GitHub
parent 466f9b3fb8
commit 1933d5c9bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 0 additions and 107 deletions

View File

@ -37,7 +37,6 @@ enabled_tabs:
- acls-tab
- settings-tab
- support-tab
- upgrade-top-tab
- vmgroup-tab
features:
# True to show showback monthly reports, and VM cost
@ -903,9 +902,6 @@ tabs:
# Edit button in settings_quotas_tab
User.two_factor_auth: true
User.quotas_dialog: false
upgrade-top-tab:
panel_tabs:
actions:
vmgroup-tab:
panel_tabs:
vm_group_info_tab: true

View File

@ -37,7 +37,6 @@ enabled_tabs:
#- acls-tab
- settings-tab
#- support-tab
#- upgrade-top-tab
- vmgroup-tab
features:
# True to show showback monthly reports, and VM cost
@ -903,9 +902,6 @@ tabs:
Settings.two_factor_auth: true
# Edit button in settings_quotas_tab
User.quotas_dialog: false
upgrade-top-tab:
panel_tabs:
actions:
vmgroup-tab:
panel_tabs:
vm_group_info_tab: true

View File

@ -37,7 +37,6 @@ enabled_tabs:
#- acls-tab
- settings-tab
#- support-tab
#- upgrade-top-tab
- vmgroup-tab
features:
# True to show showback monthly reports, and VM cost
@ -896,9 +895,6 @@ tabs:
Settings.two_factor_auth: true
# Edit button in settings_quotas_tab
User.quotas_dialog: false
upgrade-top-tab:
panel_tabs:
actions:
vmgroup-tab:
panel_tabs:
vm_group_info_tab: true

View File

@ -37,7 +37,6 @@ enabled_tabs:
- acls-tab
- settings-tab
- support-tab
- upgrade-top-tab
- vmgroup-tab
features:
# True to show showback monthly reports, and VM cost
@ -906,9 +905,6 @@ tabs:
Settings.two_factor_auth: true
# Edit button in settings_quotas_tab
User.quotas_dialog: false
upgrade-top-tab:
panel_tabs:
actions:
vmgroup-tab:
panel_tabs:
vm_group_info_tab: true

View File

@ -37,7 +37,6 @@ enabled_tabs:
#- acls-tab
- settings-tab
#- support-tab
#- upgrade-top-tab
- vmgroup-tab
features:
# True to show showback monthly reports, and VM cost
@ -904,9 +903,6 @@ tabs:
Settings.two_factor_auth: true
# Edit button in settings_quotas_tab
User.quotas_dialog: false
upgrade-top-tab:
panel_tabs:
actions:
vmgroup-tab:
panel_tabs:
vm_group_info_tab: true

View File

@ -37,7 +37,6 @@ enabled_tabs:
#- acls-tab
- settings-tab
#- support-tab
#- upgrade-top-tab
- vmgroup-tab
features:
# True to show showback monthly reports, and VM cost
@ -897,9 +896,6 @@ tabs:
Settings.two_factor_auth: true
# Edit button in settings_quotas_tab
User.quotas_dialog: false
upgrade-top-tab:
panel_tabs:
actions:
vmgroup-tab:
panel_tabs:
vm_group_info_tab: true

View File

@ -37,7 +37,6 @@ enabled_tabs:
- acls-tab
- settings-tab
- support-tab
- upgrade-top-tab
- vmgroup-tab
features:
# True to show showback monthly reports, and VM cost
@ -903,9 +902,6 @@ tabs:
Settings.two_factor_auth: true
# Edit button in settings_quotas_tab
User.quotas_dialog: false
upgrade-top-tab:
panel_tabs:
actions:
vmgroup-tab:
panel_tabs:
vm_group_info_tab: true

View File

@ -37,7 +37,6 @@ enabled_tabs:
#- acls-tab
- settings-tab
#- support-tab
#- upgrade-top-tab
- vmgroup-tab
features:
# True to show showback monthly reports, and VM cost
@ -904,9 +903,6 @@ tabs:
Settings.two_factor_auth: true
# Edit button in settings_quotas_tab
User.quotas_dialog: false
upgrade-top-tab:
panel_tabs:
actions:
vmgroup-tab:
panel_tabs:
vm_group_info_tab: true

View File

@ -37,7 +37,6 @@ enabled_tabs:
#- acls-tab
- settings-tab
#- support-tab
#- upgrade-top-tab
- vmgroup-tab
features:
# True to show showback monthly reports, and VM cost
@ -897,9 +896,6 @@ tabs:
Settings.two_factor_auth: true
# Edit button in settings_quotas_tab
User.quotas_dialog: false
upgrade-top-tab:
panel_tabs:
actions:
vmgroup-tab:
panel_tabs:
vm_group_info_tab: true

View File

@ -155,7 +155,6 @@ require.config({
"tabs/settings-tab",
"tabs/support-tab",
"tabs/official-support-tab",
"tabs/upgrade-top-tab",
"tabs/vmgroup-tab",
"addons/start",
"addons/end"

View File

@ -66,7 +66,6 @@ define(function(require) {
"support-tab",
"official-support-tab",
"settings-tab",
"upgrade-top-tab",
"vmgroup-tab",
"secgroups-tab",
"provision-tab"

View File

@ -1,69 +0,0 @@
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2019, 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) {
var Locale = require('utils/locale');
var TAB_ID = 'upgrade-top-tab';
var Tab = {
tabId: TAB_ID,
title: "",
setup: _setup,
content: ""
}
return Tab;
function _setup() {
$('#li_upgrade-top-tab > a').on("click", function(e){
var redirect_port = config['upgrade']['redirect_port'];
var upgrade_url = config['upgrade']['url'];
if (redirect_port) {
window.location = document.URL.replace(/(https?:\/\/)([^:\/]+).*$/,"http://$2:"+redirect_port)
} else {
window.location = upgrade_url
}
return false;
});
$.ajax({
url: '/version',
type: "GET",
dataType: "json",
success: function(response) {
var version = response["version"];
// remote_version could be null if the server cannot reach the url
var remote_version = response["remote_version"];
var tab_title;
if (remote_version && (version < remote_version)) {
tab_title = config['upgrade']['upgrade'];
} else {
tab_title = config['upgrade']['no_upgrade'];
}
$("li[id$='upgrade-top-tab'] > a").html(tab_title);
},
error: function(response) {
return null;
}
});
}
});