search placeholder shows total scripts
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -6,7 +6,7 @@ export class ScriptStub extends BaseEntity<string> implements IScript {
|
||||
public code = `REM code${this.id}`;
|
||||
public revertCode = `REM revertCode${this.id}`;
|
||||
public readonly documentationUrls = new Array<string>();
|
||||
public isRecommended = false;
|
||||
public isRecommended = true;
|
||||
|
||||
constructor(public readonly id: string) {
|
||||
super(id);
|
||||
|
||||
Reference in New Issue
Block a user