Local Libraries in Settings

This commit is contained in:
2025-03-19 22:44:11 +01:00
parent ecd76712d8
commit 2092db2ba3
8 changed files with 95 additions and 19 deletions

View File

@ -1,4 +1,12 @@
export default interface INewLibraryRecord {
path: string;
name: string;
}
export function Validate(record: INewLibraryRecord) : boolean {
if(record.path.length < 1)
return false;
if(record.name.length < 1)
return false;
return true;
}