ui: Ensure intention form cancel button works (#9901)

* ui: Ensure intention form cancel button works

By adding `@action` decorators to the actions called form within the
template
pull/9908/head
John Cowen 4 years ago committed by GitHub
parent 0863806769
commit a7a56ca39c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,3 @@
```release-note:bug
ui: Fix intention form cancel button
```

@ -23,6 +23,7 @@ export default class ConsulIntentionForm extends Component {
this.updateCRDManagement();
}
@action
ondelete() {
if (this.args.ondelete) {
this.args.ondelete(...arguments);
@ -31,6 +32,7 @@ export default class ConsulIntentionForm extends Component {
}
}
@action
oncancel() {
if (this.args.oncancel) {
this.args.oncancel(...arguments);
@ -39,6 +41,7 @@ export default class ConsulIntentionForm extends Component {
}
}
@action
onsubmit() {
if (this.args.onsubmit) {
this.args.onsubmit(...arguments);
@ -49,6 +52,7 @@ export default class ConsulIntentionForm extends Component {
updateCRDManagement() {
this.isManagedByCRDs = this.repo.isManagedByCRDs();
}
@action
submit(item, submit, e) {
e.preventDefault();
@ -60,6 +64,7 @@ export default class ConsulIntentionForm extends Component {
submit();
}
}
@action
createServices(item, e) {
// Services in the menus should:

Loading…
Cancel
Save