@yuuvis/app-drive 2.0.13 → 2.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -14,7 +14,7 @@ npm install @yuuvis/app-drive --save
14
14
  In your `app.config.ts` add the `AppDriveExtension` to the providers:
15
15
 
16
16
  ```ts
17
- import { AppDriveExtensionsModule } from '@yuuvis/app-drive/extensions';
17
+ import { AppDriveExtension } from '@yuuvis/app-drive/extensions';
18
18
  import { provideDrive } from '@yuuvis/app-drive';
19
19
 
20
20
  export const appConfig: ApplicationConfig = {
@@ -38,7 +38,7 @@ export const app: App[] = [
38
38
  id: 'io.yuuvis.app.drive',
39
39
  title: 'Drive',
40
40
  path: 'drive',
41
- icon: '<svg ... />',
41
+ iconName: 'cloud_circle',
42
42
  loadChildren: () => import('@yuuvis/app-drive').then((m) => m.YuuvisDriveRoutes)
43
43
  },
44
44
  ]
@@ -2019,12 +2019,7 @@ class DriveSearchComponent {
2019
2019
  term: this.term
2020
2020
  }
2021
2021
  });
2022
- this.#oRef.afterClosed().subscribe((res) => {
2023
- if (res) {
2024
- const q = res.searchQuery;
2025
- this.onQuerySubmit(q, !!q.filters?.length || !!q.scope);
2026
- }
2027
- });
2022
+ this.#oRef.afterClosed().subscribe((q) => q && this.onQuerySubmit(q, !!q.filters?.length || !!q.scope));
2028
2023
  }
2029
2024
  clear() {
2030
2025
  this.#router.navigate(['..', this.currentFolder() || DRIVE_ROOT_FOLDER_ID], {