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
|
Qsupplier.App.ModalAddSectionController = Ember.ObjectController.extend
|
||||||
alert_message: null
|
alert_message: null
|
||||||
section_name: ''
|
section_title: ''
|
||||||
section_width: 15
|
section_width: 15
|
||||||
section_height: 8
|
section_height: 8
|
||||||
actions:
|
actions:
|
||||||
@@ -35,5 +35,6 @@ Qsupplier.App.ModalAddSectionController = Ember.ObjectController.extend
|
|||||||
width: width
|
width: width
|
||||||
height: height
|
height: height
|
||||||
section.save().then (s)=>
|
section.save().then (s)=>
|
||||||
|
@set 'section_title', ''
|
||||||
@send 'closeModal'
|
@send 'closeModal'
|
||||||
@transitionToRoute 'section', s.id
|
@transitionToRoute 'section', s.id
|
||||||
|
|||||||
Reference in New Issue
Block a user