Skip to content

Commit

Permalink
very minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
chinonso098 committed Oct 21, 2023
1 parent bc9d924 commit 274ac8c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down Expand Up @@ -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)
}

}
16 changes: 8 additions & 8 deletions src/app/user-apps/title/title.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,35 @@ 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',
// opacity: 0.8,
// 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')
]),
]),
],
Expand Down

0 comments on commit 274ac8c

Please sign in to comment.