mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-04-28 19:39:35 +00:00
spam detector: custom rules: move apply/revert buttons to pending section
Move the buttons for applying or reverting pending changes into the top bar of the pending changes diff panel, as then they are closer to what they control and also only shown when relevant. Drop the odd hint w.r.t. restarting pmg-smtp-filter from the top-bar, as we can convey that better in the prompt, where there is already a check-box that defaults to restarting that service. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
11bd23b8c9
commit
536eb6e543
@ -89,7 +89,7 @@ Ext.define('PMG.SpamDetectorCustomScores', {
|
||||
{
|
||||
xtype: 'proxmoxcheckbox',
|
||||
name: 'restart-daemon',
|
||||
fieldLabel: gettext('Restart pmg-smtp-filter'),
|
||||
boxLabel: gettext('Restart pmg-smtp-filter to activate changes.'),
|
||||
labelWidth: 150,
|
||||
checked: true,
|
||||
},
|
||||
@ -240,26 +240,6 @@ Ext.define('PMG.SpamDetectorCustomScores', {
|
||||
},
|
||||
callback: 'reload',
|
||||
},
|
||||
' ',
|
||||
{
|
||||
text: gettext('Revert'),
|
||||
reference: 'revert_btn',
|
||||
handler: 'revert',
|
||||
disabled: true,
|
||||
bind: {
|
||||
disabled: '{applied}',
|
||||
},
|
||||
},
|
||||
'-',
|
||||
{
|
||||
text: gettext('Apply Custom Scores'),
|
||||
reference: 'restart_btn',
|
||||
disabled: true,
|
||||
bind: {
|
||||
disabled: '{applied}',
|
||||
},
|
||||
handler: 'restart',
|
||||
},
|
||||
],
|
||||
|
||||
viewConfig: {
|
||||
@ -305,8 +285,26 @@ Ext.define('PMG.SpamDetectorCustomScores', {
|
||||
},
|
||||
reference: 'changes',
|
||||
tbar: [
|
||||
gettext('Pending changes') + ' (' +
|
||||
gettext('Please restart pmg-smtp-filter to activate changes') + ')',
|
||||
{
|
||||
text: gettext('Revert'),
|
||||
handler: 'revert',
|
||||
disabled: true,
|
||||
bind: {
|
||||
disabled: '{applied}',
|
||||
},
|
||||
},
|
||||
'-',
|
||||
{
|
||||
text: gettext('Apply Custom Scores'),
|
||||
handler: 'restart',
|
||||
disabled: true,
|
||||
bind: {
|
||||
disabled: '{applied}',
|
||||
},
|
||||
},
|
||||
'->',
|
||||
`<b style="font-weight: 600">${gettext('Pending changes')}</b>`,
|
||||
'->',
|
||||
],
|
||||
split: true,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user