[WEB-4677] improvement: add defaultOpen property to CustomSearchSelect (#7576)
* [WEB-4677] improvement: add defaultOpen property to CustomSearchSelect * improvement: add utils to format time duration * improvement: added initializing state for project store * improvement: minor changes in automations page
This commit is contained in:
parent
5629a4d4b6
commit
34c6047d80
7 changed files with 74 additions and 7 deletions
|
|
@ -25,6 +25,7 @@ export interface IProjectStore {
|
|||
projectMap: Record<string, TProject>; // projectId: project info
|
||||
projectAnalyticsCountMap: Record<string, TProjectAnalyticsCount>; // projectId: project analytics count
|
||||
// computed
|
||||
isInitializingProjects: boolean;
|
||||
filteredProjectIds: string[] | undefined;
|
||||
workspaceProjectIds: string[] | undefined;
|
||||
archivedProjectIds: string[] | undefined;
|
||||
|
|
@ -101,6 +102,7 @@ export class ProjectStore implements IProjectStore {
|
|||
openCollapsibleSection: observable.ref,
|
||||
lastCollapsibleAction: observable.ref,
|
||||
// computed
|
||||
isInitializingProjects: computed,
|
||||
filteredProjectIds: computed,
|
||||
workspaceProjectIds: computed,
|
||||
archivedProjectIds: computed,
|
||||
|
|
@ -138,6 +140,13 @@ export class ProjectStore implements IProjectStore {
|
|||
this.stateService = new ProjectStateService();
|
||||
}
|
||||
|
||||
/**
|
||||
* @description returns true if projects are still initializing
|
||||
*/
|
||||
get isInitializingProjects() {
|
||||
return this.loader === "init-loader";
|
||||
}
|
||||
|
||||
/**
|
||||
* @description returns filtered projects based on filters and search query
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue