mirror of https://github.com/status-im/consul.git
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
This commit is contained in:
parent
0863806769
commit
a7a56ca39c
|
@ -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();
|
this.updateCRDManagement();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@action
|
||||||
ondelete() {
|
ondelete() {
|
||||||
if (this.args.ondelete) {
|
if (this.args.ondelete) {
|
||||||
this.args.ondelete(...arguments);
|
this.args.ondelete(...arguments);
|
||||||
|
@ -31,6 +32,7 @@ export default class ConsulIntentionForm extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@action
|
||||||
oncancel() {
|
oncancel() {
|
||||||
if (this.args.oncancel) {
|
if (this.args.oncancel) {
|
||||||
this.args.oncancel(...arguments);
|
this.args.oncancel(...arguments);
|
||||||
|
@ -39,6 +41,7 @@ export default class ConsulIntentionForm extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@action
|
||||||
onsubmit() {
|
onsubmit() {
|
||||||
if (this.args.onsubmit) {
|
if (this.args.onsubmit) {
|
||||||
this.args.onsubmit(...arguments);
|
this.args.onsubmit(...arguments);
|
||||||
|
@ -49,6 +52,7 @@ export default class ConsulIntentionForm extends Component {
|
||||||
updateCRDManagement() {
|
updateCRDManagement() {
|
||||||
this.isManagedByCRDs = this.repo.isManagedByCRDs();
|
this.isManagedByCRDs = this.repo.isManagedByCRDs();
|
||||||
}
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
submit(item, submit, e) {
|
submit(item, submit, e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -60,6 +64,7 @@ export default class ConsulIntentionForm extends Component {
|
||||||
submit();
|
submit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
createServices(item, e) {
|
createServices(item, e) {
|
||||||
// Services in the menus should:
|
// Services in the menus should:
|
||||||
|
|
Loading…
Reference in New Issue