Add straight values to wizard state view
issue11703 review431591006
This commit is contained in:
1 parent
f16214ed41
commit
c9fe9f9f00
1 file changed
+8
-3
+8
-3
@@ -73,9 +73,14 @@
|
||||
this.update(view.fields_view, view.buttons);
|
||||
|
||||
this.screen.new_(false).then(() => {
|
||||
this.screen.current_record.set_default(view.defaults);
|
||||
this.update_buttons();
|
||||
this.screen.set_cursor();
|
||||
this.screen.current_record.set_default(
|
||||
view.defaults || {})
|
||||
.then(() => {
|
||||
this.screen.current_record.set(
|
||||
view.values || {});
|
||||
this.update_buttons();
|
||||
this.screen.set_cursor();
|
||||
});
|
||||
});
|
||||
|
||||
this.screen_state = view.state;
|
||||
|
||||
Reference in new issue
Block a user