@@ -18,24 +18,24 @@ const {
1818} = Ember ;
1919
2020export default Ember . Component . extend ( {
21- titleEmpty : computed . empty ( 'model.title' ) ,
22- messageEmpty : computed . empty ( 'model.message' ) ,
21+ titleEmpty : computed . empty ( 'model.general. title' ) ,
22+ messageEmpty : computed . empty ( 'model.general. message' ) ,
2323 hasTitleInputError : computed . and ( 'titleEmpty' , 'titleError' ) ,
2424 hasMessageInputError : computed . and ( 'messageEmpty' , 'messageError' ) ,
2525
2626 actions : {
2727 save ( ) {
28- if ( isEmpty ( this . get ( 'model.title' ) ) ) {
28+ if ( isEmpty ( this . get ( 'model.general. title' ) ) ) {
2929 set ( this , 'titleError' , true ) ;
3030 return $ ( "#siteTitle" ) . focus ( ) ;
3131 }
3232
33- if ( isEmpty ( this . get ( 'model.message' ) ) ) {
33+ if ( isEmpty ( this . get ( 'model.general. message' ) ) ) {
3434 set ( this , 'messageError' , true ) ;
3535 return $ ( "#siteMessage" ) . focus ( ) ;
3636 }
3737
38- this . model . set ( 'allowAnonymousAccess' , Ember . $ ( "#allowAnonymousAccess" ) . prop ( 'checked' ) ) ;
38+ this . model . general . set ( 'allowAnonymousAccess' , Ember . $ ( "#allowAnonymousAccess" ) . prop ( 'checked' ) ) ;
3939 this . get ( 'save' ) ( ) . then ( ( ) => {
4040 set ( this , 'titleError' , false ) ;
4141 set ( this , 'messageError' , false ) ;
0 commit comments