Reset section title in ember controller after adding
This commit is contained in:
+2
-1
@@ -1,6 +1,6 @@
|
||||
Qsupplier.App.ModalAddSectionController = Ember.ObjectController.extend
|
||||
alert_message: null
|
||||
section_name: ''
|
||||
section_title: ''
|
||||
section_width: 15
|
||||
section_height: 8
|
||||
actions:
|
||||
@@ -35,5 +35,6 @@ Qsupplier.App.ModalAddSectionController = Ember.ObjectController.extend
|
||||
width: width
|
||||
height: height
|
||||
section.save().then (s)=>
|
||||
@set 'section_title', ''
|
||||
@send 'closeModal'
|
||||
@transitionToRoute 'section', s.id
|
||||
|
||||
Reference in New Issue
Block a user