feat: Кнопка обновления списка доменов и подсетей

refactor: Поменять curl на wget, убрать зависимость
This commit is contained in:
Ivan K
2024-12-13 17:41:04 +03:00
parent 7373b76a8e
commit 7ba5ed6347
3 changed files with 105 additions and 58 deletions

View File

@@ -765,6 +765,25 @@ return view.extend({
});
};
o = s.taboption('diagnostics', form.Button, '_list_update');
o.title = _('Update lists');
o.description = _('Update all lists in config');
o.inputtitle = _('Update lists');
o.inputstyle = 'apply';
o.onclick = function () {
fs.exec('/etc/init.d/podkop', ['list_update']);
ui.showModal(_('List Update'), [
E('p', {}, _('Lists will be updated in background. You can check the progress in system logs.')),
E('div', { class: 'right' }, [
E('button', {
'class': 'btn',
'click': ui.hideModal
}, _('Close'))
])
]);
};
return m.render();
}
});