File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
app/components/forms/admin/settings Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
import Component from '@ember/component' ;
2
2
import FormMixin from 'open-event-frontend/mixins/form' ;
3
3
import { validPhoneNumber } from 'open-event-frontend/utils/validators' ;
4
- import { action } from '@ember/object' ;
5
4
6
- export default class extends Component . extend ( FormMixin ) {
5
+ export default Component . extend ( FormMixin , {
7
6
getValidationRules ( ) {
8
7
return {
9
8
inline : true ,
@@ -100,12 +99,13 @@ export default class extends Component.extend(FormMixin) {
100
99
}
101
100
}
102
101
} ;
103
- }
102
+ } ,
104
103
105
- @action
106
- submit ( ) {
107
- this . onValid ( ( ) => {
108
- this . save ( ) ;
109
- } ) ;
104
+ actions : {
105
+ submit ( ) {
106
+ this . onValid ( ( ) => {
107
+ this . save ( ) ;
108
+ } ) ;
109
+ }
110
110
}
111
- }
111
+ } ) ;
You can’t perform that action at this time.
0 commit comments