From 274ac8c3f713bb49992eaa76d418e0c17bab02fa Mon Sep 17 00:00:00 2001 From: chinons098 Date: Sat, 21 Oct 2023 14:31:11 -0400 Subject: [PATCH] very minor change --- src/app/app.component.ts | 6 +++--- src/app/user-apps/title/title.component.ts | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 2f4419c4..e3ec70f4 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -43,7 +43,7 @@ export class AppComponent implements OnDestroy, AfterViewInit { private _appIsRunningSub!:Subscription; private userOpenedAppsList: string[] = []; - private userOpenedAppsKey = "openedApps"; + private readonly userOpenedAppsKey = "openedApps"; hasWindow = false; icon = ''; @@ -148,12 +148,12 @@ export class AppComponent implements OnDestroy, AfterViewInit { if (pidIndex !== -1) this.userOpenedAppsList.splice(pidIndex, deleteCount); - this._sessionMangamentServices.addSession("openedApps", this.userOpenedAppsList) + this._sessionMangamentServices.addSession(this.userOpenedAppsKey, this.userOpenedAppsList) } private addEntryFromUserOpenedApps(proccessName:string):void{ this.userOpenedAppsList.push(proccessName); - this._sessionMangamentServices.addSession("openedApps", this.userOpenedAppsList) + this._sessionMangamentServices.addSession(this.userOpenedAppsKey, this.userOpenedAppsList) } } diff --git a/src/app/user-apps/title/title.component.ts b/src/app/user-apps/title/title.component.ts index 2bcdf77f..a8669b23 100644 --- a/src/app/user-apps/title/title.component.ts +++ b/src/app/user-apps/title/title.component.ts @@ -15,7 +15,7 @@ import { trigger, transition, state, animate, style, AnimationEvent } from '@ang state('open', style({ // height: '200px', opacity: 1, - backgroundColor: 'yellow' + //backgroundColor: 'yellow' })), state('closed', style({ // height: '100px', @@ -23,27 +23,27 @@ import { trigger, transition, state, animate, style, AnimationEvent } from '@ang // backgroundColor: 'blue' })), transition('open => closed', [ - animate('10s') + animate('1s') ]), transition('closed => open', [ - animate('9.5s') + animate('1.5s') ]), transition('* => closed', [ - animate('10s') + animate('2s') ]), transition('* => open', [ - animate('9.5s') + animate('1.5s') ]), transition('open <=> closed', [ - animate('9.5s') + animate('1.5s') ]), transition ('* => open', [ - animate ('10s', + animate ('2s', style ({ opacity: '*' }), ), ]), transition('* => *', [ - animate('10s') + animate('2s') ]), ]), ],