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:
parent
4c55e8226d
commit
0ff4dc822b
1 changed files with 6 additions and 0 deletions
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue