mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: clear all cells (#4856)
* feat: clear all cells * fix: smaller dialog width * fix: clippy warning
This commit is contained in:
@ -62,6 +62,19 @@ class FieldBackendService {
|
||||
return DatabaseEventDeleteField(payload).send();
|
||||
}
|
||||
|
||||
// Clear all data of all cells in a Field
|
||||
static Future<FlowyResult<void, FlowyError>> clearField({
|
||||
required String viewId,
|
||||
required String fieldId,
|
||||
}) {
|
||||
final payload = ClearFieldPayloadPB(
|
||||
viewId: viewId,
|
||||
fieldId: fieldId,
|
||||
);
|
||||
|
||||
return DatabaseEventClearField(payload).send();
|
||||
}
|
||||
|
||||
/// Duplicate a field
|
||||
static Future<FlowyResult<void, FlowyError>> duplicateField({
|
||||
required String viewId,
|
||||
|
Reference in New Issue
Block a user