Apply suggestions from code review

Co-authored-by: Oliver Günther <o.guenther@openproject.com>
pull/11837/head
Eric Schubert 2 years ago committed by GitHub
parent c5c82411bf
commit e03bc41a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      frontend/src/app/core/state/storage-files/upload-link.model.ts
  2. 2
      frontend/src/app/core/state/storages/storage.model.ts
  3. 2
      frontend/src/app/shared/components/storages/file-picker-base-modal.component.ts/file-picker-base-modal.component.ts
  4. 21
      frontend/src/app/shared/components/storages/services/upload-storage-files.service.ts

@ -29,7 +29,7 @@
import { IHalMethodResourceLink, IHalResourceLinks } from 'core-app/core/state/hal-resource';
interface IHalUploadResourceLinks extends IHalResourceLinks {
destination:IHalMethodResourceLink
destination:IHalMethodResourceLink;
}
export interface IUploadLink {

@ -36,7 +36,7 @@ export interface IPrepareUploadBody {
}
export interface IPrepareUploadLink extends IHalMethodResourceLink {
payload:IPrepareUploadBody
payload:IPrepareUploadBody;
}
export interface IStorageHalResourceLinks extends IHalResourceLinks {

@ -132,7 +132,7 @@ export abstract class FilePickerBaseModalComponent extends OpModalComponent impl
};
}
protected changeLevel(parent:string | null, crumbs:Breadcrumb[]):void {
protected changeLevel(parent:string|null, crumbs:Breadcrumb[]):void {
this.cancelCurrentLoading();
this.loading$.next(true);
this.breadcrumbs = new BreadcrumbsContent(crumbs);

@ -114,15 +114,16 @@ export class UploadStorageFilesService {
}
private get propfindBody() {
return '<?xml version="1.0"?>\n'
+ '<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">\n'
+ ' <d:prop>\n'
+ ' <oc:fileid />\n'
+ ' <d:getlastmodified />\n'
+ ' <d:getcontenttype />\n'
+ ' <oc:size />\n'
+ ' <oc:owner-display-name />\n'
+ ' </d:prop>\n'
+ '</d:propfind>';
return `
<?xml version="1.0"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:prop>
<oc:fileid />
<d:getlastmodified />
<d:getcontenttype />
<oc:size />
<oc:owner-display-name />
</d:prop>
</d:propfind>`;
}
}

Loading…
Cancel
Save