mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-08 18:28:53 +01:00
Comment out unsupported code
This commit is contained in:
parent
7c290a1825
commit
94d042dfa0
1 changed files with 6 additions and 7 deletions
|
@ -14,7 +14,6 @@ import 'package:nc_photos/entity/collection_item/new_item.dart';
|
||||||
import 'package:nc_photos/entity/collection_item/util.dart';
|
import 'package:nc_photos/entity/collection_item/util.dart';
|
||||||
import 'package:nc_photos/entity/file_descriptor.dart';
|
import 'package:nc_photos/entity/file_descriptor.dart';
|
||||||
import 'package:nc_photos/entity/nc_album.dart';
|
import 'package:nc_photos/entity/nc_album.dart';
|
||||||
import 'package:nc_photos/object_extension.dart';
|
|
||||||
import 'package:nc_photos/use_case/find_file_descriptor.dart';
|
import 'package:nc_photos/use_case/find_file_descriptor.dart';
|
||||||
import 'package:nc_photos/use_case/nc_album/add_file_to_nc_album.dart';
|
import 'package:nc_photos/use_case/nc_album/add_file_to_nc_album.dart';
|
||||||
import 'package:nc_photos/use_case/nc_album/edit_nc_album.dart';
|
import 'package:nc_photos/use_case/nc_album/edit_nc_album.dart';
|
||||||
|
@ -98,16 +97,16 @@ class CollectionNcAlbumAdapter
|
||||||
_log.warning(
|
_log.warning(
|
||||||
"[edit] Nextcloud album does not support editing item or sort");
|
"[edit] Nextcloud album does not support editing item or sort");
|
||||||
}
|
}
|
||||||
final newItems = items?.run((items) => items
|
// final newItems = items?.run((items) => items
|
||||||
.map((e) => e is CollectionFileItem ? e.file : null)
|
// .map((e) => e is CollectionFileItem ? e.file : null)
|
||||||
.whereNotNull()
|
// .whereNotNull()
|
||||||
.toList());
|
// .toList());
|
||||||
final newAlbum = await EditNcAlbum(_c)(
|
final newAlbum = await EditNcAlbum(_c)(
|
||||||
account,
|
account,
|
||||||
_provider.album,
|
_provider.album,
|
||||||
name: name,
|
name: name,
|
||||||
items: newItems,
|
// items: newItems,
|
||||||
itemSort: itemSort,
|
// itemSort: itemSort,
|
||||||
);
|
);
|
||||||
return collection.copyWith(
|
return collection.copyWith(
|
||||||
name: name,
|
name: name,
|
||||||
|
|
Loading…
Reference in a new issue