search placeholder shows total scripts

This commit is contained in:
undergroundwires
2020-07-18 18:26:15 +01:00
parent 9c063d59de
commit 1d5225de07
4 changed files with 45 additions and 2 deletions

View File

@@ -23,6 +23,16 @@ export class CategoryStub extends BaseEntity<number> implements ICategory {
}
return this;
}
public withCategories(...categories: ICategory[]): CategoryStub {
for (const category of categories) {
this.withCategory(category);
}
return this;
}
public withCategory(category: ICategory): CategoryStub {
this.subCategories.push(category);
return this;
}
public withScript(script: IScript): CategoryStub {
this.scripts.push(script);
return this;