mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-16 00:37:54 +02:00
Local Libraries in Settings
This commit is contained in:
@ -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;
|
||||
}
|
Reference in New Issue
Block a user