luci-app-firewall: use Firewall.removeZone() helper

Fixes: FS#2932
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2932
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2020-03-26 19:14:47 +01:00
parent 4c55e8226d
commit 0ff4dc822b

View file

@ -82,6 +82,12 @@ return L.view.extend({
s.anonymous = true;
s.sortable = true;
s.handleRemove = function(section_id, ev) {
return firewall.deleteZone(section_id).then(L.bind(function() {
return this.super('handleRemove', [section_id, ev]);
}, this));
};
s.tab('general', _('General Settings'));
s.tab('advanced', _('Advanced Settings'));
s.tab('conntrack', _('Conntrack Settings'));