mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-07-28 06:59:11 +00:00
apt: drop ChangeLogUrl
it's not returned anymore by the corresponding backends, since fetching changelogs is now fully delegated to `apt`. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
64ffc0378e
commit
7605e43eaa
@ -2,7 +2,7 @@ Ext.define('apt-pkglist', {
|
|||||||
extend: 'Ext.data.Model',
|
extend: 'Ext.data.Model',
|
||||||
fields: [
|
fields: [
|
||||||
'Package', 'Title', 'Description', 'Section', 'Arch', 'Priority', 'Version', 'OldVersion',
|
'Package', 'Title', 'Description', 'Section', 'Arch', 'Priority', 'Version', 'OldVersion',
|
||||||
'ChangeLogUrl', 'Origin',
|
'Origin',
|
||||||
],
|
],
|
||||||
idProperty: 'Package',
|
idProperty: 'Package',
|
||||||
});
|
});
|
||||||
@ -108,8 +108,8 @@ Ext.define('Proxmox.node.APT', {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let show_changelog = function(rec) {
|
let show_changelog = function(rec) {
|
||||||
if (!rec?.data?.ChangeLogUrl || !rec?.data?.Package) {
|
if (!rec?.data?.Package) {
|
||||||
console.debug('cannot show changelog, missing Package and/or ChangeLogUrl', rec);
|
console.debug('cannot show changelog, missing Package', rec);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -154,7 +154,7 @@ Ext.define('Proxmox.node.APT', {
|
|||||||
text: gettext('Changelog'),
|
text: gettext('Changelog'),
|
||||||
selModel: sm,
|
selModel: sm,
|
||||||
disabled: true,
|
disabled: true,
|
||||||
enableFn: rec => !!rec?.data?.ChangeLogUrl && !!rec?.data?.Package,
|
enableFn: rec => !!rec?.data?.Package,
|
||||||
handler: (b, e, rec) => show_changelog(rec),
|
handler: (b, e, rec) => show_changelog(rec),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user