Add import task

This commit is contained in:
2024-08-10 07:33:29 +00:00
committed by GitHub
parent 92646cfaa9
commit 79e1ca9bbe
17 changed files with 797 additions and 145 deletions

View File

@@ -90,6 +90,14 @@ class _TaskView extends State<TaskView> {
return Text("${i18n.exportZipTask} $title",
maxLines: 1, overflow: TextOverflow.ellipsis);
}
if (typ == TaskType.import) {
final gid = widget.task.base.gid;
final title = tasks.meta.containsKey(gid)
? tasks.meta[gid]!.preferredTitle
: gid.toString();
return Text("${i18n.importTask} $title",
maxLines: 1, overflow: TextOverflow.ellipsis);
}
return Container();
}