aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/services/content/Services.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/services/content/Services.tsx')
-rw-r--r--src/components/services/content/Services.tsx22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/components/services/content/Services.tsx b/src/components/services/content/Services.tsx
index 53cddd907..fa26edaa6 100644
--- a/src/components/services/content/Services.tsx
+++ b/src/components/services/content/Services.tsx
@@ -42,8 +42,8 @@ interface IProps extends WrappedComponentProps, WithStylesProps<typeof styles> {
42 services?: Service[]; 42 services?: Service[];
43 setWebviewReference: () => void; 43 setWebviewReference: () => void;
44 detachService: () => void; 44 detachService: () => void;
45 handleIPCMessage: () => void; 45 // handleIPCMessage: () => void; // TODO - [TECH DEBT] later check it
46 openWindow: () => void; 46 // openWindow: () => void; // TODO - [TECH DEBT] later check it
47 reload: (options: { serviceId: string }) => void; 47 reload: (options: { serviceId: string }) => void;
48 openSettings: (options: { path: string }) => void; 48 openSettings: (options: { path: string }) => void;
49 update: (options: { 49 update: (options: {
@@ -61,7 +61,7 @@ interface IState {
61 61
62@observer 62@observer
63class Services extends Component<IProps, IState> { 63class Services extends Component<IProps, IState> {
64 _confettiTimeout: number | null = null; 64 confettiTimeout: number | null = null;
65 65
66 constructor(props: IProps) { 66 constructor(props: IProps) {
67 super(props); 67 super(props);
@@ -72,7 +72,7 @@ class Services extends Component<IProps, IState> {
72 } 72 }
73 73
74 componentDidMount(): void { 74 componentDidMount(): void {
75 this._confettiTimeout = window.setTimeout(() => { 75 this.confettiTimeout = window.setTimeout(() => {
76 this.setState({ 76 this.setState({
77 showConfetti: false, 77 showConfetti: false,
78 }); 78 });
@@ -80,18 +80,18 @@ class Services extends Component<IProps, IState> {
80 } 80 }
81 81
82 componentWillUnmount(): void { 82 componentWillUnmount(): void {
83 if (this._confettiTimeout) { 83 if (this.confettiTimeout) {
84 clearTimeout(this._confettiTimeout); 84 clearTimeout(this.confettiTimeout);
85 } 85 }
86 } 86 }
87 87
88 render(): ReactElement { 88 render(): ReactElement {
89 const { 89 const {
90 services = [], 90 services = [],
91 handleIPCMessage, 91 // handleIPCMessage, // TODO - [TECH DEBT] later check it
92 setWebviewReference, 92 setWebviewReference,
93 detachService, 93 detachService,
94 openWindow, 94 // openWindow, // TODO - [TECH DEBT] later check it
95 reload, 95 reload,
96 openSettings, 96 openSettings,
97 update, 97 update,
@@ -136,10 +136,10 @@ class Services extends Component<IProps, IState> {
136 <ServiceView 136 <ServiceView
137 key={service.id} 137 key={service.id}
138 service={service} 138 service={service}
139 handleIPCMessage={handleIPCMessage} 139 // handleIPCMessage={handleIPCMessage} // TODO - [TECH DEBT][PROPS NOT EXIST IN COMPONENT] later check it
140 setWebviewReference={setWebviewReference} 140 setWebviewRef={setWebviewReference}
141 detachService={detachService} 141 detachService={detachService}
142 openWindow={openWindow} 142 // openWindow={openWindow} // TODO - [TECH DEBT][PROPS NOT EXIST IN COMPONENT] later check it
143 reload={() => reload({ serviceId: service.id })} 143 reload={() => reload({ serviceId: service.id })}
144 edit={() => openSettings({ path: `services/edit/${service.id}` })} 144 edit={() => openSettings({ path: `services/edit/${service.id}` })}
145 enable={() => 145 enable={() =>