mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
various bug fixes (#1010)
* various bug fixes * use 'remove favorite' label where appropriate * fix toggle favorite component labels * e2e type check and fixes * favorite library label * support toggle favorite component selectors * update tests * update e2e tests * update e2e * e2e update * update e2e
This commit is contained in:
@@ -30,7 +30,7 @@ import { QueriesApi as AdfQueriesApi } from '@alfresco/js-api';
|
||||
export class QueriesApi extends RepoApi {
|
||||
queriesApi = new AdfQueriesApi(this.alfrescoJsApi);
|
||||
|
||||
constructor(username?, password?) {
|
||||
constructor(username?: string, password?: string) {
|
||||
super(username, password);
|
||||
}
|
||||
|
||||
@@ -51,10 +51,10 @@ export class QueriesApi extends RepoApi {
|
||||
};
|
||||
|
||||
await this.apiAuth();
|
||||
return this.alfrescoJsApi.core.queriesApi.findNodes(searchTerm, data);
|
||||
return this.queriesApi.findNodes(searchTerm, data);
|
||||
}
|
||||
|
||||
async waitForSites(searchTerm, data) {
|
||||
async waitForSites(searchTerm: string, data: any) {
|
||||
try {
|
||||
const sites = async () => {
|
||||
const totalItems = (await this.findSites(searchTerm)).list.pagination.totalItems;
|
||||
@@ -71,7 +71,7 @@ export class QueriesApi extends RepoApi {
|
||||
}
|
||||
}
|
||||
|
||||
async waitForFilesAndFolders(searchTerm, data) {
|
||||
async waitForFilesAndFolders(searchTerm: string, data: any) {
|
||||
try {
|
||||
const nodes = async () => {
|
||||
const totalItems = (await this.findNodes(searchTerm)).list.pagination.totalItems;
|
||||
|
Reference in New Issue
Block a user