fix: mobile launch review (#4214)

* fix: text for changing field type

* fix: field name text field autofocus

* fix: don't allow insert left on primary field

* fix: edit field from view setting

* fix: edit non-current database view

* fix: row detail toggle hidden fields button

* fix: database view name autofocus

* fix: mobile date picker

* fix: deleting select option not deleting column

* fix: duplicate and delete view

* fix: mobile tab bar header left  padding
This commit is contained in:
Richard Shiue
2023-12-27 11:56:06 +08:00
committed by GitHub
parent df8409178b
commit 1cde5a0df6
17 changed files with 169 additions and 84 deletions

View File

@ -842,14 +842,14 @@ impl DatabaseEditor {
type_option.delete_option(&option.id);
}
notify_did_update_database_field(&self.database, field_id)?;
self
.database
.lock()
.fields
.update_field(field_id, |update| {
update.set_type_option(field.field_type, Some(type_option.to_type_option_data()));
});
let view_editor = self.database_views.get_view_editor(view_id).await?;
update_field_type_option_fn(
&self.database,
&view_editor,
type_option.to_type_option_data(),
field.clone(),
)
.await?;
self
.update_cell_with_changeset(view_id, row_id, field_id, cell_changeset)