diff --git a/src/app/system-apps/taskmanager/taskmanager.component.css b/src/app/system-apps/taskmanager/taskmanager.component.css index d07dfd7b..b6dd02b1 100644 --- a/src/app/system-apps/taskmanager/taskmanager.component.css +++ b/src/app/system-apps/taskmanager/taskmanager.component.css @@ -113,7 +113,6 @@ border: 1px solid #ccc; /* Cell border */ border-top: none; vertical-align: middle; - } .table th:first-child th:last-child{ @@ -318,7 +317,7 @@ img{ .navigation { - /* border: 1px solid black; */ + /* border: 1px solid black; */ background-color: #ffffff; display:flex; position:relative; diff --git a/src/app/system-apps/taskmanager/taskmanager.component.html b/src/app/system-apps/taskmanager/taskmanager.component.html index ac996d4b..2c2bcbba 100644 --- a/src/app/system-apps/taskmanager/taskmanager.component.html +++ b/src/app/system-apps/taskmanager/taskmanager.component.html @@ -52,25 +52,25 @@
+ | v ᴧ Name | -+ | v ᴧ Status | -+ | v @@ -80,7 +80,7 @@ CPU | -+ | v @@ -90,7 +90,7 @@ Memory | -+ | v @@ -101,7 +101,7 @@ Disk | -+ | v @@ -111,7 +111,7 @@ Network | -+ |
v
ᴧ
diff --git a/src/app/system-apps/taskmanager/taskmanager.component.ts b/src/app/system-apps/taskmanager/taskmanager.component.ts
index c9bdbd72..f84cf10f 100644
--- a/src/app/system-apps/taskmanager/taskmanager.component.ts
+++ b/src/app/system-apps/taskmanager/taskmanager.component.ts
@@ -1,5 +1,5 @@
-import { Component, OnInit,OnDestroy, AfterViewInit} from '@angular/core';
-import { Subject, Subscription, interval, switchMap, timer } from 'rxjs';
+import { Component, OnInit,OnDestroy, AfterViewInit, ViewChild, ElementRef, Renderer2} from '@angular/core';
+import { Subject, Subscription, interval, switchMap } from 'rxjs';
import { ProcessIDService } from 'src/app/shared/system-service/process.id.service';
import { RunningProcessService } from 'src/app/shared/system-service/running.process.service';
import { BaseComponent } from 'src/app/system-base/base/base.component';
@@ -8,7 +8,7 @@ import { Process } from 'src/app/system-files/process';
import { SortingInterface } from './sorting.interface';
import { StateManagmentService } from 'src/app/shared/system-service/state.management.service';
import { FileInfo } from 'src/app/system-files/fileinfo';
-import { RefreshRates, RefreshRatesIntervals } from './refresh.rates';
+import { RefreshRates, RefreshRatesIntervals, TableColumns } from './taskmanager.enum';
import { TriggerProcessService } from 'src/app/shared/system-service/trigger.process.service';
@Component({
@@ -24,10 +24,13 @@ export class TaskmanagerComponent implements BaseComponent,OnInit,OnDestroy,Afte
// @ViewChild('diskId',{ static: true }) diskId!: ElementRef;
// @ViewChild('networkId',{ static: true }) networkId!: ElementRef;
+ @ViewChild('tableId') tableId!: ElementRef;
+
private _processIdService:ProcessIDService;
private _runningProcessService:RunningProcessService;
private _stateManagmentService: StateManagmentService;
private _triggerProcessService:TriggerProcessService;
+ private _renderer: Renderer2;
private _processListChangeSub!: Subscription;
private _taskmgrRefreshIntervalSub!: Subscription;
@@ -44,6 +47,13 @@ export class TaskmanagerComponent implements BaseComponent,OnInit,OnDestroy,Afte
private processNumberToSuspend = 0;
private refreshRateInterval = 0;
private processIdToClose = 0;
+
+ private statusColumnVisible = true;
+ private cpuColumnVisible = true;
+ private memoryColumnVisible = true;
+ private diskColumnVisible = true;
+ private networkColumnVisible = true;
+ private pidColumnVisible = true;
hasWindow = true;
icon = 'osdrive/icons/taskmanger.png';
@@ -68,11 +78,14 @@ export class TaskmanagerComponent implements BaseComponent,OnInit,OnDestroy,Afte
diskUtil = 0;
networkUtil = 0;
- constructor( processIdService:ProcessIDService,runningProcessService:RunningProcessService,stateManagmentService: StateManagmentService,triggerProcessService:TriggerProcessService) {
+
+ constructor( processIdService:ProcessIDService,runningProcessService:RunningProcessService,
+ stateManagmentService: StateManagmentService,triggerProcessService:TriggerProcessService, renderer: Renderer2) {
this._processIdService = processIdService;
this._runningProcessService = runningProcessService;
this._stateManagmentService = stateManagmentService;
this._triggerProcessService = triggerProcessService;
+ this._renderer = renderer;
this.processId = this._processIdService.getNewProcessId()
this._runningProcessService.addProcess(this.getComponentDetail());
@@ -82,8 +95,7 @@ export class TaskmanagerComponent implements BaseComponent,OnInit,OnDestroy,Afte
this._chnageTaskmgrRefreshIntervalSub = new Subject |
---|