mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: import cvs from file (#2667)
* refactor: import file * chore: fix tarui build
This commit is contained in:
@ -37,7 +37,7 @@ extension InsertDatabase on EditorState {
|
||||
|
||||
final prefix = _referencedDatabasePrefix(viewPB.layout);
|
||||
final ref = await AppBackendService().createView(
|
||||
appId: appPB.id,
|
||||
parentViewId: appPB.id,
|
||||
name: "$prefix ${viewPB.name}",
|
||||
layoutType: viewPB.layout,
|
||||
ext: {
|
||||
|
@ -25,7 +25,7 @@ SelectionMenuItem boardViewMenuItem(DocumentBloc documentBloc) =>
|
||||
final service = AppBackendService();
|
||||
|
||||
final result = (await service.createView(
|
||||
appId: appId,
|
||||
parentViewId: appId,
|
||||
name: LocaleKeys.menuAppHeader_defaultNewPageName.tr(),
|
||||
layoutType: ViewLayoutPB.Board,
|
||||
))
|
||||
|
@ -25,7 +25,7 @@ SelectionMenuItem gridViewMenuItem(DocumentBloc documentBloc) =>
|
||||
final service = AppBackendService();
|
||||
|
||||
final result = (await service.createView(
|
||||
appId: appId,
|
||||
parentViewId: appId,
|
||||
name: LocaleKeys.menuAppHeader_defaultNewPageName.tr(),
|
||||
layoutType: ViewLayoutPB.Grid,
|
||||
))
|
||||
|
Reference in New Issue
Block a user