mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-08-12 11:46:03 +00:00
repo view: replace non-clickable checkbox with icons
From a usability view, having a checkbox that is not clickable is pretty misleading, especially if the visual style is exactly the same as in other places in the UI where the checkbox is functional. Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
parent
dde1f3b094
commit
64f65c027d
@ -100,6 +100,8 @@ utilities: {
|
|||||||
return value;
|
return value;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
renderEnabledIcon: enabled => `<i class="fa fa-${enabled ? 'check' : 'minus'}"></i>`,
|
||||||
|
|
||||||
language_array: function() {
|
language_array: function() {
|
||||||
let data = [['__default__', Proxmox.Utils.render_language('')]];
|
let data = [['__default__', Proxmox.Utils.render_language('')]];
|
||||||
Ext.Object.each(Proxmox.Utils.language_map, function(key, value) {
|
Ext.Object.each(Proxmox.Utils.language_map, function(key, value) {
|
||||||
|
@ -239,12 +239,10 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
|
|||||||
|
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
xtype: 'checkcolumn',
|
|
||||||
header: gettext('Enabled'),
|
header: gettext('Enabled'),
|
||||||
dataIndex: 'Enabled',
|
dataIndex: 'Enabled',
|
||||||
listeners: {
|
align: 'center',
|
||||||
beforecheckchange: () => false, // veto, we don't want to allow inline change - to subtle
|
renderer: Proxmox.Utils.renderEnabledIcon,
|
||||||
},
|
|
||||||
width: 90,
|
width: 90,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user