Re-enable import
This commit is contained in:
parent
cc25bfdeca
commit
e4a20a10dd
|
|
@ -126,15 +126,14 @@ class _FileImportState extends State<_FileImport> {
|
||||||
final localization = AppLocalization.of(context);
|
final localization = AppLocalization.of(context);
|
||||||
|
|
||||||
if (widget.importType != ImportType.csv) {
|
if (widget.importType != ImportType.csv) {
|
||||||
/*
|
for (MapEntry<String, String> uploadPart
|
||||||
for (MapEntry<String,String> uploadPart in widget.importType.uploadParts.entries) {
|
in widget.importType.uploadParts.entries) {
|
||||||
if (!_multipartFiles.containsKey(uploadPart.key)) {
|
if (!_multipartFiles.containsKey(uploadPart.key)) {
|
||||||
showErrorDialog(
|
showErrorDialog(
|
||||||
context: context, message: localization.requiredFilesMissing);
|
context: context, message: localization.requiredFilesMissing);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final webClient = WebClient();
|
final webClient = WebClient();
|
||||||
|
|
@ -199,8 +198,8 @@ class _FileImportState extends State<_FileImport> {
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
/*
|
for (MapEntry<String, String> uploadPart
|
||||||
for (MapEntry<String,String> uploadPart in widget.importType.uploadParts.entries) {
|
in widget.importType.uploadParts.entries) {
|
||||||
final multipartFile = _multipartFiles.containsKey(uploadPart.key)
|
final multipartFile = _multipartFiles.containsKey(uploadPart.key)
|
||||||
? _multipartFiles[uploadPart.key]
|
? _multipartFiles[uploadPart.key]
|
||||||
: null;
|
: null;
|
||||||
|
|
@ -212,12 +211,9 @@ class _FileImportState extends State<_FileImport> {
|
||||||
label: localization.lookup(uploadPart.value),
|
label: localization.lookup(uploadPart.value),
|
||||||
initialValue: !_multipartFiles.containsKey(uploadPart.key)
|
initialValue: !_multipartFiles.containsKey(uploadPart.key)
|
||||||
? localization.noFileSelected
|
? localization.noFileSelected
|
||||||
: '${_multipartFiles[uploadPart.key].filename} • ${formatSize(
|
: '${_multipartFiles[uploadPart.key].filename} • ${formatSize(_multipartFiles[uploadPart.key].length)}');
|
||||||
_multipartFiles[uploadPart.key].length)}');
|
|
||||||
|
|
||||||
children.add(Row(
|
children.add(Row(crossAxisAlignment: CrossAxisAlignment.end, children: [
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
|
||||||
children: [
|
|
||||||
Expanded(child: field),
|
Expanded(child: field),
|
||||||
SizedBox(width: kTableColumnGap),
|
SizedBox(width: kTableColumnGap),
|
||||||
OutlineButton(
|
OutlineButton(
|
||||||
|
|
@ -240,8 +236,6 @@ class _FileImportState extends State<_FileImport> {
|
||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
children.add(SizedBox(height: 20));
|
children.add(SizedBox(height: 20));
|
||||||
|
|
||||||
if (_isLoading)
|
if (_isLoading)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue