node: repos: add online help

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Reviewed-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Tested-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-07-14 14:55:47 +02:00 committed by Thomas Lamprecht
parent f0de3268af
commit 5e76f7302a

View File

@ -141,6 +141,7 @@ Ext.define('Proxmox.node.APTRepositoriesErrors', {
Ext.define('Proxmox.node.APTRepositoriesGrid', { Ext.define('Proxmox.node.APTRepositoriesGrid', {
extend: 'Ext.grid.GridPanel', extend: 'Ext.grid.GridPanel',
xtype: 'proxmoxNodeAPTRepositoriesGrid', xtype: 'proxmoxNodeAPTRepositoriesGrid',
mixins: ['Proxmox.Mixin.CBind'],
title: gettext('APT Repositories'), title: gettext('APT Repositories'),
@ -162,6 +163,9 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
name: 'addRepo', name: 'addRepo',
disabled: true, disabled: true,
repoInfo: undefined, repoInfo: undefined,
cbind: {
onlineHelp: '{onlineHelp}',
},
handler: function(button, event, record) { handler: function(button, event, record) {
Proxmox.Utils.checked_command(() => { Proxmox.Utils.checked_command(() => {
let me = this; let me = this;
@ -177,6 +181,7 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
url: `/api2/extjs/nodes/${panel.nodename}/apt/repositories`, url: `/api2/extjs/nodes/${panel.nodename}/apt/repositories`,
method: 'PUT', method: 'PUT',
extraRequestParams: extraParams, extraRequestParams: extraParams,
onlineHelp: me.onlineHelp,
listeners: { listeners: {
destroy: function() { destroy: function() {
panel.reload(); panel.reload();
@ -410,6 +415,8 @@ Ext.define('Proxmox.node.APTRepositories', {
digest: undefined, digest: undefined,
onlineHelp: undefined,
product: 'Proxmox VE', // default product: 'Proxmox VE', // default
controller: { controller: {
@ -575,6 +582,7 @@ Ext.define('Proxmox.node.APTRepositories', {
flex: 1, flex: 1,
cbind: { cbind: {
nodename: '{nodename}', nodename: '{nodename}',
onlineHelp: '{onlineHelp}',
}, },
majorUpgradeAllowed: false, // TODO get release information from an API call? majorUpgradeAllowed: false, // TODO get release information from an API call?
listeners: { listeners: {