Vue.component("http-firewall-policy-selector", { props: ["v-http-firewall-policy"], mounted: function () { let that = this Tea.action("/servers/components/waf/count") .post() .success(function (resp) { that.count = resp.data.count }) }, data: function () { let firewallPolicy = this.vHttpFirewallPolicy return { count: 0, firewallPolicy: firewallPolicy } }, methods: { remove: function () { this.firewallPolicy = null }, select: function () { let that = this teaweb.popup("/servers/components/waf/selectPopup", { height: "26em", callback: function (resp) { that.firewallPolicy = resp.data.firewallPolicy } }) }, create: function () { let that = this teaweb.popup("/servers/components/waf/createPopup", { height: "26em", callback: function (resp) { that.firewallPolicy = resp.data.firewallPolicy } }) } }, template: `
` })