File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change 11import Controller from '@ember/controller' ;
2- import { action } from '@ember/object' ;
32import EmberTableControllerMixin from 'open-event-frontend/mixins/ember-table-controller' ;
43
54export default class extends Controller . extend ( EmberTableControllerMixin ) {
@@ -54,24 +53,4 @@ get columns() {
5453
5554 ] ;
5655}
57-
58- @action
59- save ( ) {
60- try {
61- const systemMessages = this . model ;
62- systemMessages . forEach ( systemMessage => {
63- systemMessage . save ( ) ;
64- } ) ;
65- this . notify . success ( this . l10n . t ( 'Changes have been saved successfully' ) ,
66- {
67- id : 'message_success'
68- } ) ;
69- } catch ( e ) {
70- console . error ( 'Error while saving system messages' , e ) ;
71- this . notify . error ( e . errors [ 0 ] . detail ,
72- {
73- id : 'change_error_message'
74- } ) ;
75- }
76- }
7756}
Original file line number Diff line number Diff line change 1616 @resizeMode =" fluid"
1717 @fillMode =" equal-column" />
1818 </div >
19- <div class =" sixteen wide {{ if this.device.isMobile ' center aligned' }} column" >
20- <button class =" ui blue button left floated {{ if this.isLoading ' loading' }} " {{ action ' save' }} >{{ t ' Save' }} </button >
21- </div >
2219 </div >
2320</div >
You can’t perform that action at this time.
0 commit comments