feature(web): Added option to download file and copy stream url (#209)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2025-02-01 15:22:22 +01:00 committed by GitHub
parent 54babaec89
commit bd8faf2f6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 61 additions and 18 deletions

View file

@ -38,13 +38,9 @@ class AccountModel with _$AccountModel {
factory AccountModel.fromJson(Map<String, dynamic> json) => _$AccountModelFromJson(json);
String get server {
return credentials.server;
}
String get server => credentials.server;
bool get canDownload {
return (policy?.enableContentDownloading ?? false) && !kIsWeb;
}
bool get canDownload => (policy?.enableContentDownloading ?? false);
//Check if it's the same account on the same server
bool sameIdentity(AccountModel other) {