[go: nahoru, domu]

Skip to content

Commit

Permalink
ui: fix variable name used to add the firewall
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo R.S. Joao <leonardo.joao@ossystems.com.br>
  • Loading branch information
leonardojoao authored and otavio committed Feb 15, 2022
1 parent 8a73eda commit 9bfbd49
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ui/src/components/firewall_rule/FirewallRuleFormDialogAdd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,17 @@ export default {
methods: {
resetRuleFirewall() {
this.ruleFirewallLocal.active = true;
this.ruleFirewallLocal.priority = '';
this.ruleFirewallLocal.action = '';
this.ruleFirewallLocal.source_ip = '';
this.ruleFirewallLocal.username = '';
this.ruleFirewallLocal.hostname = '';
this.ruleFirewall.active = true;
this.ruleFirewall.priority = '';
this.ruleFirewall.action = '';
this.ruleFirewall.source_ip = '';
this.ruleFirewall.username = '';
this.ruleFirewall.hostname = '';
},
async create() {
try {
await this.$store.dispatch('firewallrules/post', this.ruleFirewallLocal);
await this.$store.dispatch('firewallrules/post', this.ruleFirewall);
this.$store.dispatch('snackbar/showSnackbarSuccessAction', this.$success.firewallRuleCreating);
this.update();
} catch {
Expand Down

0 comments on commit 9bfbd49

Please sign in to comment.