fix(12-02): replace removed Scan() import with ScanAllLibraries()
Scan() wrapper was deleted in Phase 11 but config-page.ts and library-manager.ts still imported it. Use ScanAllLibraries() for soft scan since multi-library model scans all libraries.
This commit is contained in:
@@ -3,7 +3,6 @@ import { customElement, state } from 'lit/decorators.js';
|
|||||||
import { repeat } from 'lit/directives/repeat.js';
|
import { repeat } from 'lit/directives/repeat.js';
|
||||||
import { EventsOn } from '@runtime/runtime';
|
import { EventsOn } from '@runtime/runtime';
|
||||||
import {
|
import {
|
||||||
Scan,
|
|
||||||
FullRescan,
|
FullRescan,
|
||||||
CancelCurrentScan,
|
CancelCurrentScan,
|
||||||
CancelAllScans,
|
CancelAllScans,
|
||||||
@@ -1427,7 +1426,7 @@ export class ConfigPage extends LitElement {
|
|||||||
|
|
||||||
private handleSoftScan = async (): Promise<void> => {
|
private handleSoftScan = async (): Promise<void> => {
|
||||||
try {
|
try {
|
||||||
await Scan();
|
await ScanAllLibraries();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.statusMessage =
|
this.statusMessage =
|
||||||
'Scan completed with errors.';
|
'Scan completed with errors.';
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import { LitElement, html, css, nothing } from 'lit';
|
|||||||
import { customElement, state } from 'lit/decorators.js';
|
import { customElement, state } from 'lit/decorators.js';
|
||||||
import { EventsOn } from '@runtime/runtime';
|
import { EventsOn } from '@runtime/runtime';
|
||||||
import {
|
import {
|
||||||
Scan,
|
|
||||||
FullRescan,
|
FullRescan,
|
||||||
ScanAllLibraries,
|
ScanAllLibraries,
|
||||||
} from '@go/library/Library';
|
} from '@go/library/Library';
|
||||||
@@ -812,7 +811,7 @@ export class LibraryManager extends LitElement {
|
|||||||
|
|
||||||
private handleSoftScan = async (): Promise<void> => {
|
private handleSoftScan = async (): Promise<void> => {
|
||||||
try {
|
try {
|
||||||
await Scan();
|
await ScanAllLibraries();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.statusMessage =
|
this.statusMessage =
|
||||||
'Scan completed with errors.';
|
'Scan completed with errors.';
|
||||||
|
|||||||
Reference in New Issue
Block a user