@plusscommunities/pluss-maintenance-app 6.0.20 → 6.0.22-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/actions/JobActions.js +4 -4
- package/dist/module/actions/JobActions.js.map +1 -1
- package/dist/module/actions/index.js +1 -1
- package/dist/module/actions/index.js.map +1 -1
- package/dist/module/actions/types.js +1 -1
- package/dist/module/actions/types.js.map +1 -1
- package/dist/module/apis/index.js +3 -3
- package/dist/module/apis/index.js.map +1 -1
- package/dist/module/apis/maintenanceActions.js +36 -36
- package/dist/module/apis/maintenanceActions.js.map +1 -1
- package/dist/module/apis/userActions.js +5 -5
- package/dist/module/apis/userActions.js.map +1 -1
- package/dist/module/components/FilterPopupMenu.js +49 -49
- package/dist/module/components/FilterPopupMenu.js.map +1 -1
- package/dist/module/components/MaintenanceList.js +38 -38
- package/dist/module/components/MaintenanceList.js.map +1 -1
- package/dist/module/components/MaintenanceListItem.js +62 -62
- package/dist/module/components/MaintenanceListItem.js.map +1 -1
- package/dist/module/components/MaintenanceWidgetItem.js +27 -27
- package/dist/module/components/MaintenanceWidgetItem.js.map +1 -1
- package/dist/module/components/PrioritySelectorPopup.js +15 -15
- package/dist/module/components/PrioritySelectorPopup.js.map +1 -1
- package/dist/module/components/StatusSelectorPopup.js +16 -16
- package/dist/module/components/StatusSelectorPopup.js.map +1 -1
- package/dist/module/components/WidgetLarge.js +2 -2
- package/dist/module/components/WidgetLarge.js.map +1 -1
- package/dist/module/components/WidgetSmall.js +19 -19
- package/dist/module/components/WidgetSmall.js.map +1 -1
- package/dist/module/core.config.js +1 -1
- package/dist/module/core.config.js.map +1 -1
- package/dist/module/feature.config.js +17 -17
- package/dist/module/feature.config.js.map +1 -1
- package/dist/module/helper.js +10 -10
- package/dist/module/helper.js.map +1 -1
- package/dist/module/index.js +11 -11
- package/dist/module/index.js.map +1 -1
- package/dist/module/reducers/JobsReducer.js +13 -13
- package/dist/module/reducers/JobsReducer.js.map +1 -1
- package/dist/module/screens/JobTypePicker.js +17 -17
- package/dist/module/screens/JobTypePicker.js.map +1 -1
- package/dist/module/screens/MaintenancePage.js +10 -10
- package/dist/module/screens/MaintenancePage.js.map +1 -1
- package/dist/module/screens/MaintenanceUserPicker.js +129 -22
- package/dist/module/screens/MaintenanceUserPicker.js.map +1 -1
- package/dist/module/screens/RequestDetail.js +145 -145
- package/dist/module/screens/RequestDetail.js.map +1 -1
- package/dist/module/screens/RequestNotes.js +59 -59
- package/dist/module/screens/RequestNotes.js.map +1 -1
- package/dist/module/screens/ServiceRequest.js +2 -2
- package/dist/module/screens/ServiceRequest.js.map +1 -1
- package/dist/module/values.config.a.js +30 -30
- package/dist/module/values.config.a.js.map +1 -1
- package/dist/module/values.config.default.js +34 -34
- package/dist/module/values.config.default.js.map +1 -1
- package/dist/module/values.config.enquiry.js +34 -34
- package/dist/module/values.config.enquiry.js.map +1 -1
- package/dist/module/values.config.feedback.js +34 -34
- package/dist/module/values.config.feedback.js.map +1 -1
- package/dist/module/values.config.food.js +34 -34
- package/dist/module/values.config.food.js.map +1 -1
- package/dist/module/values.config.forms.js +34 -34
- package/dist/module/values.config.forms.js.map +1 -1
- package/dist/module/values.config.js +34 -34
- package/dist/module/values.config.js.map +1 -1
- package/package.json +51 -51
- package/src/actions/JobActions.js +67 -60
- package/src/actions/index.js +1 -1
- package/src/actions/types.js +1 -2
- package/src/apis/index.js +3 -3
- package/src/apis/maintenanceActions.js +189 -178
- package/src/apis/userActions.js +17 -17
- package/src/components/FilterPopupMenu.js +313 -256
- package/src/components/MaintenanceList.js +396 -317
- package/src/components/MaintenanceListItem.js +347 -288
- package/src/components/MaintenanceWidgetItem.js +145 -124
- package/src/components/PrioritySelectorPopup.js +81 -68
- package/src/components/StatusSelectorPopup.js +81 -70
- package/src/components/WidgetLarge.js +5 -5
- package/src/components/WidgetSmall.js +153 -133
- package/src/core.config.js +27 -3
- package/src/feature.config.js +62 -62
- package/src/helper.js +58 -53
- package/src/index.js +22 -22
- package/src/reducers/JobsReducer.js +85 -66
- package/src/screens/JobTypePicker.js +115 -92
- package/src/screens/MaintenancePage.js +89 -80
- package/src/screens/MaintenanceUserPicker.js +263 -100
- package/src/screens/RequestDetail.js +1348 -1125
- package/src/screens/RequestNotes.js +950 -806
- package/src/screens/ServiceRequest.js +68 -21
- package/src/values.config.a.js +33 -33
- package/src/values.config.default.js +39 -39
- package/src/values.config.enquiry.js +39 -39
- package/src/values.config.feedback.js +39 -39
- package/src/values.config.food.js +39 -39
- package/src/values.config.forms.js +39 -39
- package/src/values.config.js +39 -39
|
@@ -1,395 +1,467 @@
|
|
|
1
|
-
import React, { Component } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
import {
|
|
3
|
+
ScrollView,
|
|
4
|
+
View,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
Text,
|
|
7
|
+
KeyboardAvoidingView,
|
|
8
|
+
TouchableOpacity,
|
|
9
|
+
ImageBackground,
|
|
10
|
+
Platform,
|
|
11
|
+
} from "react-native";
|
|
12
|
+
import DateTimePicker from "react-native-modal-datetime-picker";
|
|
13
|
+
import { Icon } from "react-native-elements";
|
|
14
|
+
import _ from "lodash";
|
|
15
|
+
import moment from "moment";
|
|
16
|
+
import { connect } from "react-redux";
|
|
17
|
+
import { maintenanceActions } from "../apis";
|
|
18
|
+
import { jobAdded, jobStatusesUpdate, jobHideSeenUpdate } from "../actions";
|
|
19
|
+
import StatusSelectorPopup from "../components/StatusSelectorPopup";
|
|
20
|
+
import PrioritySelectorPopup from "../components/PrioritySelectorPopup";
|
|
21
|
+
import { getJobStatus, getJobPriority } from "../helper";
|
|
22
|
+
import { Services } from "../feature.config";
|
|
23
|
+
import { Colours, Helper, Components, Config } from "../core.config";
|
|
24
|
+
import { values } from "../values.config";
|
|
16
25
|
|
|
17
26
|
class RequestDetail extends Component {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
27
|
+
constructor(props) {
|
|
28
|
+
super(props);
|
|
29
|
+
|
|
30
|
+
this.state = {
|
|
31
|
+
job: {},
|
|
32
|
+
isDateTimePickerVisible: false,
|
|
33
|
+
popUpType: "",
|
|
34
|
+
status: "",
|
|
35
|
+
priority: "",
|
|
36
|
+
expectedDate: null,
|
|
37
|
+
expectedDateText: "",
|
|
38
|
+
seen: false,
|
|
39
|
+
showMore: true,
|
|
40
|
+
showStatusPopup: false,
|
|
41
|
+
showPriorityPopup: false,
|
|
42
|
+
loading: false,
|
|
43
|
+
showFullscreenVideo: false,
|
|
44
|
+
currentVideoUrl: "",
|
|
45
|
+
galleryOpen: false,
|
|
46
|
+
galleryImages: [],
|
|
47
|
+
showMessages: false,
|
|
48
|
+
assignees: [],
|
|
49
|
+
selectedPDF: null,
|
|
50
|
+
externalSync: null,
|
|
51
|
+
loadingExternalSync: false,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
this.scrollView = React.createRef();
|
|
55
|
+
this.commentReply = React.createRef();
|
|
56
|
+
this.commentSection = React.createRef();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
componentDidMount() {
|
|
60
|
+
this.props.jobStatusesUpdate(this.props.job.site);
|
|
61
|
+
this.props.jobHideSeenUpdate(this.props.job.site);
|
|
62
|
+
this.getJob();
|
|
63
|
+
this.updateJobState(this.props.job);
|
|
64
|
+
this.getAssignees();
|
|
65
|
+
this.getExternalSync();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
getJob = async () => {
|
|
69
|
+
this.setState({ loading: true }, async () => {
|
|
70
|
+
try {
|
|
71
|
+
const res = await maintenanceActions.getJob(
|
|
72
|
+
this.props.job.site,
|
|
73
|
+
this.props.job.id,
|
|
74
|
+
);
|
|
75
|
+
// console.log('getJob', JSON.stringify(res.data, null, 2));
|
|
76
|
+
this.props.jobAdded(res.data);
|
|
77
|
+
this.updateJobState(res.data);
|
|
78
|
+
// Refresh external sync data when job is refreshed
|
|
79
|
+
this.getExternalSync();
|
|
80
|
+
} catch (error) {
|
|
81
|
+
console.log("getJob error", error.toString());
|
|
82
|
+
// check for 403 or 404 error
|
|
83
|
+
if (error.response.status === 403 || error.response.status === 404) {
|
|
84
|
+
this.setState({
|
|
85
|
+
forbidden: true,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
console.log("getJob error", error);
|
|
89
|
+
} finally {
|
|
90
|
+
this.setState({ loading: false });
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
getAssignees = async () => {
|
|
96
|
+
if (!this.hasPermission()) return;
|
|
97
|
+
try {
|
|
98
|
+
const res = await maintenanceActions.getAssignees(this.props.user.site);
|
|
99
|
+
this.setState({ assignees: res.data.Users });
|
|
100
|
+
} catch (error) {
|
|
101
|
+
console.log("getAssignees error", error);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
getExternalSync = async () => {
|
|
106
|
+
// Only fetch if user has maintenance tracking permission
|
|
107
|
+
if (!this.hasPermission()) return;
|
|
108
|
+
if (!this.props.job?.id) return;
|
|
109
|
+
|
|
110
|
+
try {
|
|
111
|
+
this.setState({ loadingExternalSync: true });
|
|
112
|
+
const res = await maintenanceActions.getExternalSync(this.props.job.id);
|
|
113
|
+
this.setState({ externalSync: res.data, loadingExternalSync: false });
|
|
114
|
+
} catch (error) {
|
|
115
|
+
// 404 is expected if no sync - don't show error
|
|
116
|
+
if (error.response?.status !== 404) {
|
|
117
|
+
console.log("getExternalSync error", error);
|
|
118
|
+
}
|
|
119
|
+
this.setState({ loadingExternalSync: false });
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
updateJobState(defaultJob) {
|
|
124
|
+
const job =
|
|
125
|
+
_.find(this.props.jobs, (j) => j.id === this.props.job.id) || defaultJob;
|
|
126
|
+
if (!job) {
|
|
127
|
+
this.getJob();
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const newState = { job, status: job.status };
|
|
131
|
+
if (job.expectedDate) {
|
|
132
|
+
newState.expectedDate = moment(job.expectedDate);
|
|
133
|
+
newState.expectedDateText = newState.expectedDate.format("DD/MM/YYYY");
|
|
134
|
+
}
|
|
135
|
+
if (job.seen) newState.seen = job.seen;
|
|
136
|
+
this.setState(newState, () => {
|
|
137
|
+
this.markSeen();
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
markSeen = () => {
|
|
142
|
+
const { user } = this.props;
|
|
143
|
+
const { job } = this.state;
|
|
144
|
+
// Must have maintenance permission and not the requester
|
|
145
|
+
// console.log('markSeen check', job.userID, user.Id);
|
|
146
|
+
if (job.seen === true) return;
|
|
147
|
+
if (!this.hasPermission()) return;
|
|
148
|
+
if (user.Id === job.userID) return;
|
|
149
|
+
|
|
150
|
+
this.setState({ loading: true }, async () => {
|
|
151
|
+
try {
|
|
152
|
+
const updated = {
|
|
153
|
+
id: job.id,
|
|
154
|
+
seen: true,
|
|
155
|
+
status: job.status || "Unassigned",
|
|
156
|
+
};
|
|
157
|
+
const res = await maintenanceActions.editJob(updated, user.site);
|
|
158
|
+
// console.log('markSeen updated');
|
|
159
|
+
this.props.jobAdded(res.data.job);
|
|
160
|
+
this.getJob();
|
|
161
|
+
this.setState({ loading: false, seen: true });
|
|
162
|
+
} catch (error) {
|
|
163
|
+
console.log("markSeen error", error);
|
|
164
|
+
this.setState({ loading: false });
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
updateJob = () => {
|
|
170
|
+
this.setState({ loading: true }, async () => {
|
|
171
|
+
const { user } = this.props;
|
|
172
|
+
const { job } = this.state;
|
|
173
|
+
try {
|
|
174
|
+
const updated = { id: job.id };
|
|
175
|
+
if (this.state.expectedDate) {
|
|
176
|
+
updated.expectedDate = moment(this.state.expectedDate)
|
|
177
|
+
.utc()
|
|
178
|
+
.toISOString();
|
|
179
|
+
}
|
|
180
|
+
const res = await maintenanceActions.editJob(updated, user.site);
|
|
181
|
+
this.props.jobAdded(res.data.job);
|
|
182
|
+
this.getJob();
|
|
183
|
+
} catch (error) {
|
|
184
|
+
console.log("updateJob error", error);
|
|
185
|
+
} finally {
|
|
186
|
+
this.setState({ loading: false });
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
updateJobStatus = () => {
|
|
192
|
+
this.setState({ loading: true }, async () => {
|
|
193
|
+
try {
|
|
194
|
+
const res = await maintenanceActions.editJobStatus(
|
|
195
|
+
this.props.job.id,
|
|
196
|
+
this.state.status,
|
|
197
|
+
);
|
|
198
|
+
this.props.jobAdded(res.data.job);
|
|
199
|
+
this.getJob();
|
|
200
|
+
} catch (error) {
|
|
201
|
+
console.log("updateJobStatus error", error);
|
|
202
|
+
} finally {
|
|
203
|
+
this.setState({ loading: false });
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
updateJobPriority = () => {
|
|
209
|
+
this.setState({ loading: true }, async () => {
|
|
210
|
+
try {
|
|
211
|
+
const res = await maintenanceActions.editJobPriority(
|
|
212
|
+
this.props.job.id,
|
|
213
|
+
this.state.priority,
|
|
214
|
+
);
|
|
215
|
+
this.props.jobAdded(res.data.job);
|
|
216
|
+
this.getJob();
|
|
217
|
+
} catch (error) {
|
|
218
|
+
console.log("updateJobPriority error", error);
|
|
219
|
+
} finally {
|
|
220
|
+
this.setState({ loading: false });
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
onPressBack = () => {
|
|
226
|
+
Services.navigation.goBack();
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
onOpenStatusPicker = () => {
|
|
230
|
+
this.setState({ showStatusPopup: true });
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
onCloseStatusPopup = () => {
|
|
234
|
+
this.setState({ showStatusPopup: false });
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
onSelectStatus = (status) => {
|
|
238
|
+
if (this.state.loading) return;
|
|
239
|
+
this.setState({ status, showStatusPopup: false }, () => {
|
|
240
|
+
this.updateJobStatus();
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
onOpenPriorityPicker = () => {
|
|
245
|
+
this.setState({ showPriorityPopup: true });
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
onClosePriorityPopup = () => {
|
|
249
|
+
this.setState({ showPriorityPopup: false });
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
onSelectPriority = (priority) => {
|
|
253
|
+
if (this.state.loading) return;
|
|
254
|
+
this.setState({ priority, showPriorityPopup: false }, () => {
|
|
255
|
+
this.updateJobPriority();
|
|
256
|
+
});
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
openStaffNotes = () => {
|
|
260
|
+
Services.navigation.navigate(values.screenRequestNotes, {
|
|
261
|
+
job: this.state.job,
|
|
262
|
+
onChange: this.getJob,
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
onOpenDatePicker = () => {
|
|
267
|
+
this.setState({ popUpType: "date", isDateTimePickerVisible: true });
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
onCloseDatePicker = () => {
|
|
271
|
+
this.setState({ isDateTimePickerVisible: false });
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
onDateSelected = (date) => {
|
|
275
|
+
if (this.state.popUpType === "date") {
|
|
276
|
+
date = moment(date);
|
|
277
|
+
this.setState(
|
|
278
|
+
{
|
|
279
|
+
expectedDate: date,
|
|
280
|
+
expectedDateText: date.format("DD/MM/YYYY"),
|
|
281
|
+
isDateTimePickerVisible: false,
|
|
282
|
+
},
|
|
283
|
+
() => {
|
|
284
|
+
this.updateJob();
|
|
285
|
+
},
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
onToggleDetails = () => {
|
|
291
|
+
this.setState({ showMore: !this.state.showMore });
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
onLeaveMessage = () => {
|
|
295
|
+
this.setState({ showMessages: true });
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
onCommentsLoaded = (count) => {
|
|
299
|
+
if (count > 0) {
|
|
300
|
+
this.setState({ showMessages: true });
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
onCommentAdded = () => {
|
|
305
|
+
this.setState({ loading: true }, async () => {
|
|
306
|
+
try {
|
|
307
|
+
const job = await maintenanceActions.getJob(
|
|
308
|
+
this.props.user.site,
|
|
309
|
+
this.props.job.id,
|
|
310
|
+
);
|
|
311
|
+
// console.log('onCommentAdded', job?.data);
|
|
312
|
+
this.props.jobAdded(job.data);
|
|
313
|
+
this.getJob();
|
|
314
|
+
} catch (error) {
|
|
315
|
+
console.log("onCommentAdded error", error);
|
|
316
|
+
} finally {
|
|
317
|
+
this.setState({ loading: false });
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
hasPermission = () => {
|
|
323
|
+
const { job } = this.state;
|
|
324
|
+
const { permissions } = this.props.user;
|
|
325
|
+
if (_.includes(permissions, values.permissionMaintenanceTracking)) {
|
|
326
|
+
return true;
|
|
327
|
+
}
|
|
328
|
+
if (_.includes(permissions, values.permissionMaintenanceAssignment)) {
|
|
329
|
+
return job.AssigneeId === this.props.user.Id;
|
|
330
|
+
}
|
|
331
|
+
return false;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
toggleFullscreenVideo = (url) => {
|
|
335
|
+
if (typeof url !== "string") url = "";
|
|
336
|
+
this.setState({
|
|
337
|
+
showFullscreenVideo: url.length > 0,
|
|
338
|
+
currentVideoUrl: url,
|
|
339
|
+
});
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
openGallery(galleryImages, index) {
|
|
343
|
+
this.setState({
|
|
344
|
+
galleryOpen: true,
|
|
345
|
+
galleryImages,
|
|
346
|
+
});
|
|
347
|
+
this.refs.imagePopup.scrollTo(index);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
closeGallery() {
|
|
351
|
+
this.setState({
|
|
352
|
+
galleryOpen: false,
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
onOpenAssigneePicker = () => {
|
|
357
|
+
const options = this.state.assignees.map((a) => {
|
|
358
|
+
return { key: a.id, name: a.displayName };
|
|
359
|
+
});
|
|
360
|
+
Services.navigation.navigate("optionSelector", {
|
|
361
|
+
options,
|
|
362
|
+
selection: this.state.job.AssigneeId,
|
|
363
|
+
title: "Assign request",
|
|
364
|
+
onSelect: this.onSelectAssignee,
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
onSelectAssignee = (assignee) => {
|
|
369
|
+
this.setState({ loading: true }, async () => {
|
|
370
|
+
try {
|
|
371
|
+
console.log("onSelectAssignee", this.props.job.id, assignee.key);
|
|
372
|
+
const res = await maintenanceActions.assignJob(
|
|
373
|
+
this.props.job.id,
|
|
374
|
+
assignee.key,
|
|
375
|
+
);
|
|
376
|
+
this.props.jobAdded(res.data.job);
|
|
377
|
+
this.getJob();
|
|
378
|
+
} catch (error) {
|
|
379
|
+
console.log("onSelectAssignee error", error);
|
|
380
|
+
} finally {
|
|
381
|
+
this.setState({ loading: false });
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
renderLoading() {
|
|
387
|
+
return <Components.LoadingIndicator visible={this.state.loading} />;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
renderTop() {
|
|
391
|
+
const { status, job } = this.state;
|
|
392
|
+
const statusOption = getJobStatus(status, this.props);
|
|
393
|
+
const priority = getJobPriority(job.priority);
|
|
394
|
+
const canEdit = this.hasPermission();
|
|
395
|
+
const isStaff = this.props.user.category === "staff";
|
|
396
|
+
const showSeen = !status || status === getJobStatus(null, this.props).text;
|
|
397
|
+
|
|
398
|
+
return (
|
|
399
|
+
<View style={{ ...Helper.getShadowStyle() }}>
|
|
400
|
+
<View style={styles.jobTitleContainer}>
|
|
401
|
+
{job.jobId ? (
|
|
402
|
+
<Text
|
|
403
|
+
style={[
|
|
404
|
+
styles.jobIdText,
|
|
405
|
+
{ color: this.props.colourBrandingMain },
|
|
406
|
+
]}
|
|
407
|
+
>{`${values.textEntityName} #${job.jobId}`}</Text>
|
|
408
|
+
) : null}
|
|
409
|
+
<Text style={styles.jobTitleText}>{job.title}</Text>
|
|
410
|
+
<View style={styles.jobTypeSeenContainer}>
|
|
411
|
+
<View
|
|
412
|
+
style={[
|
|
413
|
+
styles.jobTypeContainer,
|
|
414
|
+
{
|
|
415
|
+
backgroundColor: Colours.hexToRGBAstring(
|
|
416
|
+
this.props.colourBrandingMain,
|
|
417
|
+
0.2,
|
|
418
|
+
),
|
|
419
|
+
},
|
|
420
|
+
]}
|
|
421
|
+
>
|
|
422
|
+
<Text
|
|
423
|
+
style={[
|
|
424
|
+
styles.jobTypeText,
|
|
425
|
+
{ color: this.props.colourBrandingMain },
|
|
426
|
+
]}
|
|
427
|
+
numberOfLines={2}
|
|
428
|
+
>
|
|
429
|
+
{job.type}
|
|
430
|
+
</Text>
|
|
431
|
+
</View>
|
|
432
|
+
{!this.props.hideSeen && showSeen && this.state.seen && (
|
|
433
|
+
<View style={styles.jobSeenContainer}>
|
|
434
|
+
<Icon
|
|
435
|
+
name="check"
|
|
436
|
+
type="font-awesome"
|
|
437
|
+
iconStyle={[
|
|
438
|
+
styles.jobSeenIcon,
|
|
439
|
+
{ color: this.props.colourBrandingMain },
|
|
440
|
+
]}
|
|
441
|
+
/>
|
|
442
|
+
<Text
|
|
443
|
+
style={[
|
|
444
|
+
styles.jobSeenText,
|
|
445
|
+
{ color: this.props.colourBrandingMain },
|
|
446
|
+
]}
|
|
447
|
+
>
|
|
448
|
+
Seen
|
|
449
|
+
</Text>
|
|
450
|
+
</View>
|
|
451
|
+
)}
|
|
452
|
+
</View>
|
|
453
|
+
|
|
454
|
+
{job.lastActivityUnix && (
|
|
455
|
+
<View style={styles.textSectionInner}>
|
|
456
|
+
<Text style={styles.textSectionLabel}>Last Updated On</Text>
|
|
457
|
+
<View style={styles.textSectionTextContainer}>
|
|
458
|
+
<Text style={styles.textSectionText}>
|
|
459
|
+
{moment(job.lastActivityUnix).format("ddd D MMMM, h:mm A")}
|
|
460
|
+
</Text>
|
|
461
|
+
</View>
|
|
462
|
+
</View>
|
|
463
|
+
)}
|
|
464
|
+
{/* <View style={styles.textSectionInner}>
|
|
393
465
|
<Text style={styles.textSectionLabel}>Expected Date</Text>
|
|
394
466
|
<TouchableOpacity onPress={this.onOpenDatePicker}>
|
|
395
467
|
<View style={styles.textSectionTextContainer}>
|
|
@@ -402,745 +474,896 @@ class RequestDetail extends Component {
|
|
|
402
474
|
</View>
|
|
403
475
|
</TouchableOpacity>
|
|
404
476
|
</View> */}
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
477
|
+
</View>
|
|
478
|
+
<View style={styles.jobInfoContainer}>
|
|
479
|
+
<View style={styles.jobStatusExpectedContainer}>
|
|
480
|
+
<View style={styles.jobStatusOuterContainer}>
|
|
481
|
+
<Text style={styles.jobStatusHeading}>STATUS</Text>
|
|
482
|
+
<TouchableOpacity
|
|
483
|
+
onPress={canEdit ? this.onOpenStatusPicker : null}
|
|
484
|
+
>
|
|
485
|
+
<View
|
|
486
|
+
style={[
|
|
487
|
+
styles.jobStatusContainer,
|
|
488
|
+
{ backgroundColor: statusOption.color },
|
|
489
|
+
]}
|
|
490
|
+
>
|
|
491
|
+
<Text style={styles.jobStatusText}>{statusOption?.text}</Text>
|
|
492
|
+
</View>
|
|
493
|
+
</TouchableOpacity>
|
|
494
|
+
</View>
|
|
495
|
+
{this.hasPermission() && (
|
|
496
|
+
<View style={styles.jobStatusOuterContainer}>
|
|
497
|
+
<Text style={styles.jobStatusHeading}>STAFF NOTES</Text>
|
|
498
|
+
<TouchableOpacity onPress={this.openStaffNotes}>
|
|
499
|
+
<View
|
|
500
|
+
style={[
|
|
501
|
+
styles.jobStatusContainer,
|
|
502
|
+
{ backgroundColor: this.props.colourBrandingMain },
|
|
503
|
+
]}
|
|
504
|
+
>
|
|
505
|
+
<Icon
|
|
506
|
+
name="pencil-square-o"
|
|
507
|
+
type="font-awesome"
|
|
508
|
+
iconStyle={styles.jobStatusIcon}
|
|
509
|
+
/>
|
|
510
|
+
<Text style={styles.jobStatusText}>
|
|
511
|
+
Notes ({(job.Notes || []).length})
|
|
512
|
+
</Text>
|
|
513
|
+
</View>
|
|
514
|
+
</TouchableOpacity>
|
|
515
|
+
</View>
|
|
516
|
+
)}
|
|
517
|
+
</View>
|
|
518
|
+
{isStaff && (
|
|
519
|
+
<View style={styles.jobPriorityOuterContainer}>
|
|
520
|
+
<Text style={styles.jobStatusHeading}>PRIORITY</Text>
|
|
521
|
+
<TouchableOpacity
|
|
522
|
+
onPress={canEdit ? this.onOpenPriorityPicker : null}
|
|
523
|
+
>
|
|
524
|
+
<View
|
|
525
|
+
style={[
|
|
526
|
+
styles.jobStatusContainer,
|
|
527
|
+
{ backgroundColor: priority.color },
|
|
528
|
+
]}
|
|
529
|
+
>
|
|
530
|
+
<Text style={styles.jobStatusText}>{priority.label}</Text>
|
|
531
|
+
</View>
|
|
532
|
+
</TouchableOpacity>
|
|
533
|
+
</View>
|
|
534
|
+
)}
|
|
535
|
+
</View>
|
|
536
|
+
</View>
|
|
537
|
+
);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
renderPlayableImageUrl(images, index, containerStyle, showMore) {
|
|
541
|
+
const url = images[index || 0];
|
|
542
|
+
const thumbUrl = Helper.getThumb300(url);
|
|
543
|
+
|
|
544
|
+
if (Helper.isVideo(url)) {
|
|
545
|
+
return (
|
|
546
|
+
<ImageBackground
|
|
547
|
+
style={[{ flex: 1 }, containerStyle]}
|
|
548
|
+
source={{ uri: thumbUrl }}
|
|
549
|
+
>
|
|
550
|
+
<View style={styles.imagePlayContainer}>
|
|
551
|
+
<TouchableOpacity
|
|
552
|
+
onPress={this.toggleFullscreenVideo.bind(this, url)}
|
|
553
|
+
>
|
|
554
|
+
<Icon
|
|
555
|
+
name="play"
|
|
556
|
+
type="font-awesome"
|
|
557
|
+
iconStyle={styles.imageControlIcon}
|
|
558
|
+
/>
|
|
559
|
+
</TouchableOpacity>
|
|
560
|
+
</View>
|
|
561
|
+
</ImageBackground>
|
|
562
|
+
);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
const imageUrl = Helper.get1400(url);
|
|
566
|
+
return (
|
|
567
|
+
<TouchableOpacity
|
|
568
|
+
style={containerStyle}
|
|
569
|
+
onPress={this.openGallery.bind(this, images, index || 0)}
|
|
570
|
+
>
|
|
571
|
+
<ImageBackground
|
|
572
|
+
style={styles.imageContainer}
|
|
573
|
+
source={{ uri: imageUrl }}
|
|
574
|
+
>
|
|
575
|
+
{showMore && (
|
|
576
|
+
<Text style={styles.plusImages}>
|
|
577
|
+
+{this.state.job.images.length - 2}
|
|
578
|
+
</Text>
|
|
579
|
+
)}
|
|
580
|
+
</ImageBackground>
|
|
581
|
+
</TouchableOpacity>
|
|
582
|
+
);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
renderPlayableImage(images, index, containerStyle, showMore) {
|
|
586
|
+
return this.renderPlayableImageUrl(images, index, containerStyle, showMore);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
renderImage(images, image = null) {
|
|
590
|
+
if (!_.isNil(images) && !_.isEmpty(images)) {
|
|
591
|
+
if (images.length >= 2) {
|
|
592
|
+
return (
|
|
593
|
+
<View style={styles.sideBySideImages}>
|
|
594
|
+
{this.renderPlayableImage(
|
|
595
|
+
images,
|
|
596
|
+
0,
|
|
597
|
+
styles.sideBySideImageContainer,
|
|
598
|
+
)}
|
|
599
|
+
{this.renderPlayableImage(
|
|
600
|
+
images,
|
|
601
|
+
1,
|
|
602
|
+
styles.sideBySideImageContainer,
|
|
603
|
+
images.length > 2,
|
|
604
|
+
)}
|
|
605
|
+
</View>
|
|
606
|
+
);
|
|
607
|
+
} else {
|
|
608
|
+
return (
|
|
609
|
+
<View style={styles.singleImageContainer}>
|
|
610
|
+
{this.renderPlayableImage(images, 0)}
|
|
611
|
+
</View>
|
|
612
|
+
);
|
|
613
|
+
}
|
|
614
|
+
} else if (!_.isNil(image)) {
|
|
615
|
+
return (
|
|
616
|
+
<View style={styles.singleImageContainer}>
|
|
617
|
+
{this.renderPlayableImageUrl([image], 0)}
|
|
618
|
+
</View>
|
|
619
|
+
);
|
|
620
|
+
}
|
|
621
|
+
return null;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
renderDocument(documents) {
|
|
625
|
+
const { colourBrandingMain } = this.props;
|
|
626
|
+
|
|
627
|
+
if (!_.isNil(documents) && !_.isEmpty(documents)) {
|
|
628
|
+
return documents.map((document, index) => {
|
|
629
|
+
return (
|
|
630
|
+
<TouchableOpacity
|
|
631
|
+
key={index}
|
|
632
|
+
style={styles.documentContainer}
|
|
633
|
+
onPress={() => this.setState({ selectedPDF: document })}
|
|
634
|
+
>
|
|
635
|
+
<View
|
|
636
|
+
style={{
|
|
637
|
+
...styles.documentTypeContainer,
|
|
638
|
+
backgroundColor: colourBrandingMain,
|
|
639
|
+
}}
|
|
640
|
+
>
|
|
641
|
+
<Text style={styles.documentTypeText}>{document.ext}</Text>
|
|
642
|
+
</View>
|
|
643
|
+
<Text
|
|
644
|
+
style={styles.documentText}
|
|
645
|
+
>{`${document.name}${document.uploading ? ` - ${document.uploadProgress}` : ""}`}</Text>
|
|
646
|
+
</TouchableOpacity>
|
|
647
|
+
);
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
return null;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
renderImagePopup() {
|
|
654
|
+
return (
|
|
655
|
+
<Components.ImagePopup
|
|
656
|
+
visible={this.state.galleryOpen}
|
|
657
|
+
images={this.state.galleryImages}
|
|
658
|
+
onClose={this.closeGallery.bind(this)}
|
|
659
|
+
ref="imagePopup"
|
|
660
|
+
/>
|
|
661
|
+
);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
renderDocumentPopup() {
|
|
665
|
+
if (_.isEmpty(this.state.selectedPDF)) return null;
|
|
666
|
+
return (
|
|
667
|
+
<Components.PDFPopup
|
|
668
|
+
source={this.state.selectedPDF.url}
|
|
669
|
+
onClose={() => this.setState({ selectedPDF: null })}
|
|
670
|
+
title={this.state.selectedPDF.name}
|
|
671
|
+
pdfCount={1}
|
|
672
|
+
/>
|
|
673
|
+
);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
renderAssignee() {
|
|
677
|
+
const { job } = this.state;
|
|
678
|
+
if (!this.hasPermission() && !job.Assignee) return null;
|
|
679
|
+
|
|
680
|
+
const content = (
|
|
681
|
+
<View>
|
|
682
|
+
<Text style={styles.locationLabel}>Assigned To</Text>
|
|
683
|
+
<View>
|
|
684
|
+
{job.Assignee && (
|
|
685
|
+
<View style={styles.profileContainer}>
|
|
686
|
+
<Components.ProfilePic
|
|
687
|
+
ProfilePic={job.Assignee.profilePic}
|
|
688
|
+
Diameter={40}
|
|
689
|
+
/>
|
|
690
|
+
<View style={styles.nameContainer}>
|
|
691
|
+
<Text style={styles.nameText}>{job.Assignee.displayName}</Text>
|
|
692
|
+
</View>
|
|
693
|
+
</View>
|
|
694
|
+
)}
|
|
695
|
+
</View>
|
|
696
|
+
</View>
|
|
697
|
+
);
|
|
698
|
+
|
|
699
|
+
if (this.hasPermission()) {
|
|
700
|
+
return (
|
|
701
|
+
<Components.FormCardSectionOptionLauncher
|
|
702
|
+
onPress={this.onOpenAssigneePicker}
|
|
703
|
+
title="Assigned To"
|
|
704
|
+
value={job.Assignee ? job.Assignee.displayName : "Unassigned"}
|
|
705
|
+
textStyle={styles.detailsText}
|
|
706
|
+
sectionStyle={styles.detailsSection}
|
|
707
|
+
>
|
|
708
|
+
{content}
|
|
709
|
+
</Components.FormCardSectionOptionLauncher>
|
|
710
|
+
);
|
|
711
|
+
}
|
|
712
|
+
return content;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
renderExternalSync() {
|
|
716
|
+
const { externalSync, loadingExternalSync } = this.state;
|
|
717
|
+
|
|
718
|
+
// Only show if user has permission and external sync data exists
|
|
719
|
+
if (!this.hasPermission()) return null;
|
|
720
|
+
if (!externalSync || loadingExternalSync) return null;
|
|
721
|
+
|
|
722
|
+
return (
|
|
723
|
+
<View style={[styles.externalSyncContainer, Helper.getShadowStyle()]}>
|
|
724
|
+
<View style={styles.externalSyncHeader}>
|
|
725
|
+
<Text style={styles.externalSyncTitle}>External Sync</Text>
|
|
726
|
+
<Icon
|
|
727
|
+
name="sync"
|
|
728
|
+
type="material"
|
|
729
|
+
iconStyle={[
|
|
730
|
+
styles.externalSyncIcon,
|
|
731
|
+
{ color: this.props.colourBrandingMain },
|
|
732
|
+
]}
|
|
733
|
+
/>
|
|
734
|
+
</View>
|
|
735
|
+
<View style={styles.externalSyncContent}>
|
|
736
|
+
{externalSync.systemType && (
|
|
737
|
+
<View style={styles.externalSyncRow}>
|
|
738
|
+
<Text style={styles.externalSyncLabel}>System:</Text>
|
|
739
|
+
<Text style={styles.externalSyncValue}>
|
|
740
|
+
{externalSync.systemType}
|
|
741
|
+
</Text>
|
|
742
|
+
</View>
|
|
743
|
+
)}
|
|
744
|
+
{externalSync.externalId && (
|
|
745
|
+
<View style={styles.externalSyncRow}>
|
|
746
|
+
<Text style={styles.externalSyncLabel}>External ID:</Text>
|
|
747
|
+
<Text style={styles.externalSyncValue}>
|
|
748
|
+
{externalSync.externalId}
|
|
749
|
+
</Text>
|
|
750
|
+
</View>
|
|
751
|
+
)}
|
|
752
|
+
{externalSync.syncedAt && (
|
|
753
|
+
<View style={styles.externalSyncRow}>
|
|
754
|
+
<Text style={styles.externalSyncLabel}>Synced:</Text>
|
|
755
|
+
<Text style={styles.externalSyncValue}>
|
|
756
|
+
{moment(externalSync.syncedAt).format("D MMM YYYY h:mma")}
|
|
757
|
+
</Text>
|
|
758
|
+
</View>
|
|
759
|
+
)}
|
|
760
|
+
</View>
|
|
761
|
+
</View>
|
|
762
|
+
);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
renderCustomFields() {
|
|
766
|
+
const { job } = this.state;
|
|
767
|
+
const { customFields } = job;
|
|
768
|
+
|
|
769
|
+
const renderAnswer = (field) => {
|
|
770
|
+
switch (field.type) {
|
|
771
|
+
case "date":
|
|
772
|
+
return (
|
|
773
|
+
<Text style={styles.customText}>
|
|
774
|
+
{field.answer
|
|
775
|
+
? moment(field.answer, "YYYY-MM-DD").format("DD MMM YYYY")
|
|
776
|
+
: ""}
|
|
777
|
+
</Text>
|
|
778
|
+
);
|
|
779
|
+
case "time":
|
|
780
|
+
return (
|
|
781
|
+
<Text style={styles.customText}>
|
|
782
|
+
{field.answer
|
|
783
|
+
? moment(field.answer, "HH:mm").format("h:mm a")
|
|
784
|
+
: ""}
|
|
785
|
+
</Text>
|
|
786
|
+
);
|
|
787
|
+
case "yn":
|
|
788
|
+
return (
|
|
789
|
+
<Text style={styles.customText}>{field.answer ? "Yes" : "No"}</Text>
|
|
790
|
+
);
|
|
791
|
+
case "checkbox":
|
|
792
|
+
return (
|
|
793
|
+
<Text style={styles.customText}>
|
|
794
|
+
{field.answer && Array.isArray(field.answer)
|
|
795
|
+
? field.answer.join(", ")
|
|
796
|
+
: ""}
|
|
797
|
+
</Text>
|
|
798
|
+
);
|
|
799
|
+
case "image":
|
|
800
|
+
return (
|
|
801
|
+
<View style={styles.customImage}>
|
|
802
|
+
{this.renderImage(field.answer)}
|
|
803
|
+
</View>
|
|
804
|
+
);
|
|
805
|
+
case "document":
|
|
806
|
+
return (
|
|
807
|
+
<View style={styles.customDocument}>
|
|
808
|
+
{this.renderDocument(field.answer)}
|
|
809
|
+
</View>
|
|
810
|
+
);
|
|
811
|
+
default:
|
|
812
|
+
return <Text style={styles.customText}>{field.answer}</Text>;
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
return customFields.map((field, index) => {
|
|
817
|
+
if (["staticTitle", "staticText"].includes(field.type)) return null;
|
|
818
|
+
if (
|
|
819
|
+
_.isNil(field.answer) ||
|
|
820
|
+
field.answer === "" ||
|
|
821
|
+
(Array.isArray(field.answer) && field.answer.length === 0)
|
|
822
|
+
)
|
|
823
|
+
return null;
|
|
824
|
+
return (
|
|
825
|
+
<View key={index}>
|
|
826
|
+
<Text style={styles.customLabel}>{field.label}</Text>
|
|
827
|
+
{renderAnswer(field)}
|
|
828
|
+
</View>
|
|
829
|
+
);
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
rendeDetails() {
|
|
834
|
+
const { job } = this.state;
|
|
835
|
+
const { customFields } = job;
|
|
836
|
+
const hasCustomFields = customFields && customFields.length > 0;
|
|
837
|
+
|
|
838
|
+
return (
|
|
839
|
+
<View>
|
|
840
|
+
<Components.FormCardSectionOptionLauncher
|
|
841
|
+
onPress={this.onToggleDetails}
|
|
842
|
+
title="Details"
|
|
843
|
+
icon={this.state.showMore ? "angle-up" : "angle-down"}
|
|
844
|
+
textStyle={styles.detailsText}
|
|
845
|
+
sectionStyle={styles.detailsSection}
|
|
846
|
+
/>
|
|
847
|
+
{this.state.showMore && (
|
|
848
|
+
<View>
|
|
849
|
+
{hasCustomFields ? this.renderCustomFields() : null}
|
|
850
|
+
{!hasCustomFields ? (
|
|
851
|
+
<>
|
|
852
|
+
{this.renderImage(job.images, job.image)}
|
|
853
|
+
{!_.isEmpty(job.description) && (
|
|
854
|
+
<Text numberOfLines={10} style={styles.jobDescriptionText}>
|
|
855
|
+
{job.description}
|
|
856
|
+
</Text>
|
|
857
|
+
)}
|
|
858
|
+
</>
|
|
859
|
+
) : null}
|
|
860
|
+
<Text style={styles.locationLabel}>Address</Text>
|
|
861
|
+
<Text style={styles.locationText}>{job.room}</Text>
|
|
862
|
+
{!hasCustomFields && job.isHome ? (
|
|
863
|
+
<View style={styles.detailsSection}>
|
|
864
|
+
<Text style={styles.locationLabel}>Must be home</Text>
|
|
865
|
+
<Text style={styles.locationText}>{job.homeText}</Text>
|
|
866
|
+
</View>
|
|
867
|
+
) : null}
|
|
868
|
+
<Text style={styles.requesterLabel}>Submitted By</Text>
|
|
869
|
+
<View style={styles.profileContainer}>
|
|
870
|
+
<Components.ProfilePic
|
|
871
|
+
ProfilePic={job.userProfilePic}
|
|
872
|
+
Diameter={40}
|
|
873
|
+
/>
|
|
874
|
+
<View style={styles.nameContainer}>
|
|
875
|
+
<Text style={styles.nameText}>{job.userName}</Text>
|
|
876
|
+
{!_.isEmpty(job.phone) && (
|
|
877
|
+
<Text style={styles.phoneText}>{job.phone}</Text>
|
|
878
|
+
)}
|
|
879
|
+
</View>
|
|
880
|
+
</View>
|
|
881
|
+
{this.renderExternalSync()}
|
|
882
|
+
</View>
|
|
883
|
+
)}
|
|
884
|
+
</View>
|
|
885
|
+
);
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
renderMessages() {
|
|
889
|
+
return (
|
|
890
|
+
<View>
|
|
891
|
+
<Components.CommentSection
|
|
892
|
+
ref={this.commentSection}
|
|
893
|
+
commentReply={this.commentReply}
|
|
894
|
+
scrollView={this.scrollView}
|
|
895
|
+
adminPermission={values.permissionMaintenanceTracking}
|
|
896
|
+
entityType={values.commentKey}
|
|
897
|
+
entityId={this.props.job.id}
|
|
898
|
+
entityName={this.props.job.title}
|
|
899
|
+
site={this.state.job.site || this.state.job.location}
|
|
900
|
+
live
|
|
901
|
+
refreshFrequency={10000}
|
|
902
|
+
placeHolder={""}
|
|
903
|
+
style={{ flex: 1, paddingHorizontal: 0, paddingTop: 16 }}
|
|
904
|
+
onCommentsLoaded={this.onCommentsLoaded}
|
|
905
|
+
onCommentAdded={this.onCommentAdded}
|
|
906
|
+
hideAddComment
|
|
907
|
+
disableFlag
|
|
908
|
+
/>
|
|
909
|
+
{!this.state.showMessages && (
|
|
910
|
+
<Components.InlineButton
|
|
911
|
+
onPress={this.onLeaveMessage}
|
|
912
|
+
color={this.props.colourBrandingMain}
|
|
913
|
+
touchableStyle={{ marginTop: 10 }}
|
|
914
|
+
style={{ height: 36 }}
|
|
915
|
+
textStyle={{ color: "#fff" }}
|
|
916
|
+
fullWidth
|
|
917
|
+
>
|
|
918
|
+
Leave Message
|
|
919
|
+
</Components.InlineButton>
|
|
920
|
+
)}
|
|
921
|
+
</View>
|
|
922
|
+
);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
renderMessagesReply() {
|
|
926
|
+
if (!this.state.showMessages) return null;
|
|
927
|
+
|
|
928
|
+
return (
|
|
929
|
+
<Components.CommentReply
|
|
930
|
+
ref={this.commentReply}
|
|
931
|
+
commentSection={this.commentSection}
|
|
932
|
+
scrollView={this.scrollView}
|
|
933
|
+
entityType={values.commentKey}
|
|
934
|
+
entityId={this.props.job.id}
|
|
935
|
+
entityName={this.props.job.title}
|
|
936
|
+
site={this.state.job.site || this.state.job.location}
|
|
937
|
+
// noScroll={true}
|
|
938
|
+
// style={{ position: 'absolute', bottom: 0, left: 0, right: 0 }}
|
|
939
|
+
/>
|
|
940
|
+
);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
renderStatusPopup() {
|
|
944
|
+
if (!this.state.showStatusPopup) return null;
|
|
945
|
+
return (
|
|
946
|
+
<StatusSelectorPopup
|
|
947
|
+
onClose={this.onCloseStatusPopup}
|
|
948
|
+
onSelect={this.onSelectStatus}
|
|
949
|
+
/>
|
|
950
|
+
);
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
renderPriorityPopup() {
|
|
954
|
+
if (!this.state.showPriorityPopup) return null;
|
|
955
|
+
return (
|
|
956
|
+
<PrioritySelectorPopup
|
|
957
|
+
onClose={this.onClosePriorityPopup}
|
|
958
|
+
onSelect={this.onSelectPriority}
|
|
959
|
+
/>
|
|
960
|
+
);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
render() {
|
|
964
|
+
if (this.state.forbidden) {
|
|
965
|
+
return <Components.Forbidden />;
|
|
966
|
+
}
|
|
967
|
+
return (
|
|
968
|
+
<KeyboardAvoidingView
|
|
969
|
+
behavior={Platform.OS === "ios" && "padding"}
|
|
970
|
+
style={styles.container}
|
|
971
|
+
>
|
|
972
|
+
<Components.Header
|
|
973
|
+
leftIcon="angle-left"
|
|
974
|
+
onPressLeft={this.onPressBack}
|
|
975
|
+
text={Config.env.strings.MAINTENANCE_REQUEST_DETAILS}
|
|
976
|
+
/>
|
|
977
|
+
{this.renderLoading()}
|
|
978
|
+
<ScrollView
|
|
979
|
+
ref={this.scrollView}
|
|
980
|
+
contentContainerStyle={{ paddingBottom: 26 }}
|
|
981
|
+
style={{ height: "100%" }}
|
|
982
|
+
>
|
|
983
|
+
<View style={styles.innerContainer}>
|
|
984
|
+
{this.renderTop()}
|
|
985
|
+
{this.renderAssignee()}
|
|
986
|
+
{this.rendeDetails()}
|
|
987
|
+
{this.renderMessages()}
|
|
988
|
+
</View>
|
|
989
|
+
</ScrollView>
|
|
990
|
+
{this.renderMessagesReply()}
|
|
991
|
+
{this.renderStatusPopup()}
|
|
992
|
+
{this.renderPriorityPopup()}
|
|
993
|
+
{this.renderImagePopup()}
|
|
994
|
+
{this.renderDocumentPopup()}
|
|
995
|
+
<DateTimePicker
|
|
996
|
+
isVisible={this.state.isDateTimePickerVisible}
|
|
997
|
+
onConfirm={this.onDateSelected}
|
|
998
|
+
onCancel={this.onCloseDatePicker}
|
|
999
|
+
mode={this.state.popUpType}
|
|
1000
|
+
headerTextIOS={`Pick a ${this.state.popUpType}`}
|
|
1001
|
+
/>
|
|
1002
|
+
</KeyboardAvoidingView>
|
|
1003
|
+
);
|
|
1004
|
+
}
|
|
786
1005
|
}
|
|
787
1006
|
|
|
788
1007
|
const styles = StyleSheet.create({
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1008
|
+
container: {
|
|
1009
|
+
flex: 1,
|
|
1010
|
+
backgroundColor: "#fff",
|
|
1011
|
+
},
|
|
1012
|
+
innerContainer: {
|
|
1013
|
+
paddingTop: 23,
|
|
1014
|
+
paddingHorizontal: 16,
|
|
1015
|
+
},
|
|
1016
|
+
jobTitleContainer: {
|
|
1017
|
+
paddingVertical: 14,
|
|
1018
|
+
paddingHorizontal: 12,
|
|
1019
|
+
},
|
|
1020
|
+
jobIdText: {
|
|
1021
|
+
fontFamily: "sf-medium",
|
|
1022
|
+
fontSize: 12,
|
|
1023
|
+
marginBottom: 4,
|
|
1024
|
+
},
|
|
1025
|
+
jobTitleText: {
|
|
1026
|
+
fontFamily: "sf-semibold",
|
|
1027
|
+
fontSize: 20,
|
|
1028
|
+
color: Colours.TEXT_DARKEST,
|
|
1029
|
+
marginBottom: 8,
|
|
1030
|
+
},
|
|
1031
|
+
jobTypeSeenContainer: {
|
|
1032
|
+
flexDirection: "row",
|
|
1033
|
+
alignItems: "center",
|
|
1034
|
+
},
|
|
1035
|
+
jobTypeContainer: {
|
|
1036
|
+
padding: 4,
|
|
1037
|
+
minWidth: 80,
|
|
1038
|
+
maxWidth: 140,
|
|
1039
|
+
borderRadius: 4,
|
|
1040
|
+
justifyContent: "center",
|
|
1041
|
+
},
|
|
1042
|
+
jobTypeText: {
|
|
1043
|
+
fontFamily: "sf-semibold",
|
|
1044
|
+
fontSize: 12,
|
|
1045
|
+
textAlign: "center",
|
|
1046
|
+
maxWidth: "100%",
|
|
1047
|
+
},
|
|
1048
|
+
jobSeenContainer: {
|
|
1049
|
+
flexDirection: "row",
|
|
1050
|
+
alignItems: "center",
|
|
1051
|
+
marginLeft: 10,
|
|
1052
|
+
},
|
|
1053
|
+
jobSeenIcon: {
|
|
1054
|
+
fontSize: 12,
|
|
1055
|
+
},
|
|
1056
|
+
jobSeenText: {
|
|
1057
|
+
fontFamily: "sf-semibold",
|
|
1058
|
+
fontSize: 12,
|
|
1059
|
+
marginLeft: 4,
|
|
1060
|
+
},
|
|
1061
|
+
jobStatusDateText: {
|
|
1062
|
+
marginTop: 8,
|
|
1063
|
+
fontFamily: "sf-medium",
|
|
1064
|
+
fontSize: 13,
|
|
1065
|
+
color: Colours.TEXT_LIGHT,
|
|
1066
|
+
},
|
|
1067
|
+
jobInfoContainer: {
|
|
1068
|
+
borderTopWidth: 1,
|
|
1069
|
+
borderTopColor: Colours.LINEGREY,
|
|
1070
|
+
paddingVertical: 14,
|
|
1071
|
+
paddingHorizontal: 12,
|
|
1072
|
+
},
|
|
1073
|
+
jobStatusExpectedContainer: {
|
|
1074
|
+
flexDirection: "row",
|
|
1075
|
+
alignItems: "flex-start",
|
|
1076
|
+
justifyContent: "space-between",
|
|
1077
|
+
},
|
|
1078
|
+
jobStatusOuterContainer: {
|
|
1079
|
+
// marginRight: 50,
|
|
1080
|
+
},
|
|
1081
|
+
jobStatusHeading: {
|
|
1082
|
+
fontFamily: "sf-bold",
|
|
1083
|
+
fontSize: 11,
|
|
1084
|
+
letterSpacing: 0.8,
|
|
1085
|
+
color: Colours.TEXT_DARK,
|
|
1086
|
+
marginBottom: 6,
|
|
1087
|
+
},
|
|
1088
|
+
jobStatusContainer: {
|
|
1089
|
+
flexDirection: "row",
|
|
1090
|
+
alignItems: "center",
|
|
1091
|
+
width: 120,
|
|
1092
|
+
height: 30,
|
|
1093
|
+
paddingHorizontal: 8,
|
|
1094
|
+
borderRadius: 4,
|
|
1095
|
+
},
|
|
1096
|
+
jobStatusIcon: {
|
|
1097
|
+
color: "#fff",
|
|
1098
|
+
fontSize: 14,
|
|
1099
|
+
marginRight: 8,
|
|
1100
|
+
},
|
|
1101
|
+
jobStatusText: {
|
|
1102
|
+
color: "#fff",
|
|
1103
|
+
textAlign: "center",
|
|
1104
|
+
fontFamily: "sf-semibold",
|
|
1105
|
+
fontSize: 13,
|
|
1106
|
+
flex: 1,
|
|
1107
|
+
textAlign: "center",
|
|
1108
|
+
},
|
|
1109
|
+
jobPriorityOuterContainer: {
|
|
1110
|
+
marginTop: 12,
|
|
1111
|
+
},
|
|
1112
|
+
jobExpectedDateContainer: {
|
|
1113
|
+
backgroundColor: Colours.BOXGREY,
|
|
1114
|
+
flexDirection: "row",
|
|
1115
|
+
width: 115,
|
|
1116
|
+
height: 30,
|
|
1117
|
+
borderRadius: 4,
|
|
1118
|
+
alignItems: "center",
|
|
1119
|
+
paddingLeft: 8,
|
|
1120
|
+
},
|
|
1121
|
+
jobExpectedDate: {
|
|
1122
|
+
fontFamily: "sf-regular",
|
|
1123
|
+
fontSize: 13,
|
|
1124
|
+
color: Colours.hexToRGBAstring(Colours.TEXT_DARKEST, 0.5),
|
|
1125
|
+
},
|
|
1126
|
+
detailsText: {
|
|
1127
|
+
fontFamily: "sf-semibold",
|
|
1128
|
+
fontSize: 16,
|
|
1129
|
+
color: Colours.TEXT_DARKEST,
|
|
1130
|
+
},
|
|
1131
|
+
detailsSection: {
|
|
1132
|
+
marginTop: 8,
|
|
1133
|
+
paddingHorizontal: 0,
|
|
1134
|
+
paddingBottom: 12,
|
|
1135
|
+
},
|
|
1136
|
+
sideBySideImages: {
|
|
1137
|
+
flex: 1,
|
|
1138
|
+
flexDirection: "row",
|
|
1139
|
+
justifyContent: "space-between",
|
|
1140
|
+
marginBottom: 16,
|
|
1141
|
+
},
|
|
1142
|
+
sideBySideImageContainer: {
|
|
1143
|
+
backgroundColor: "#fff",
|
|
1144
|
+
width: "48%",
|
|
1145
|
+
height: 150,
|
|
1146
|
+
borderRadius: 2,
|
|
1147
|
+
overflow: "hidden",
|
|
1148
|
+
},
|
|
1149
|
+
singleImageContainer: {
|
|
1150
|
+
backgroundColor: "#fff",
|
|
1151
|
+
width: "100%",
|
|
1152
|
+
height: 150,
|
|
1153
|
+
flex: 1,
|
|
1154
|
+
borderRadius: 2,
|
|
1155
|
+
overflow: "hidden",
|
|
1156
|
+
marginBottom: 16,
|
|
1157
|
+
},
|
|
1158
|
+
imageContainer: {
|
|
1159
|
+
height: 150,
|
|
1160
|
+
width: "auto",
|
|
1161
|
+
justifyContent: "center",
|
|
1162
|
+
},
|
|
1163
|
+
imagePlayContainer: {
|
|
1164
|
+
position: "absolute",
|
|
1165
|
+
top: 0,
|
|
1166
|
+
left: 0,
|
|
1167
|
+
right: 0,
|
|
1168
|
+
bottom: 0,
|
|
1169
|
+
alignItems: "center",
|
|
1170
|
+
justifyContent: "center",
|
|
1171
|
+
},
|
|
1172
|
+
imageControlIcon: {
|
|
1173
|
+
color: "#fff",
|
|
1174
|
+
fontSize: 30,
|
|
1175
|
+
textShadowColor: "rgba(0,0,0,0.3)",
|
|
1176
|
+
textShadowOffset: { width: 2, height: 2 },
|
|
1177
|
+
},
|
|
1178
|
+
plusImages: {
|
|
1179
|
+
fontFamily: "sf-bold",
|
|
1180
|
+
fontSize: 32,
|
|
1181
|
+
textAlign: "center",
|
|
1182
|
+
color: "#fff",
|
|
1183
|
+
textShadowColor: "rgba(0, 0, 0, 0.5)",
|
|
1184
|
+
textShadowOffset: { width: 0, height: 2 },
|
|
1185
|
+
textShadowRadius: 8,
|
|
1186
|
+
},
|
|
1187
|
+
jobDescriptionText: {
|
|
1188
|
+
fontFamily: "sf-medium",
|
|
1189
|
+
fontSize: 14,
|
|
1190
|
+
color: Colours.TEXT_LIGHT,
|
|
1191
|
+
paddingBottom: 16,
|
|
1192
|
+
},
|
|
1193
|
+
locationLabel: {
|
|
1194
|
+
fontFamily: "sf-bold",
|
|
1195
|
+
fontSize: 14,
|
|
1196
|
+
color: Colours.TEXT_DARKEST,
|
|
1197
|
+
},
|
|
1198
|
+
locationText: {
|
|
1199
|
+
fontFamily: "sf-regular",
|
|
1200
|
+
fontSize: 16,
|
|
1201
|
+
color: Colours.TEXT_DARKEST,
|
|
1202
|
+
paddingVertical: 8,
|
|
1203
|
+
},
|
|
1204
|
+
requesterLabel: {
|
|
1205
|
+
fontFamily: "sf-bold",
|
|
1206
|
+
fontSize: 14,
|
|
1207
|
+
color: Colours.TEXT_DARKEST,
|
|
1208
|
+
paddingVertical: 10,
|
|
1209
|
+
},
|
|
1210
|
+
profileContainer: {
|
|
1211
|
+
flexDirection: "row",
|
|
1212
|
+
alignItems: "center",
|
|
1213
|
+
},
|
|
1214
|
+
nameContainer: {
|
|
1215
|
+
marginLeft: 18,
|
|
1216
|
+
},
|
|
1217
|
+
nameText: {
|
|
1218
|
+
fontSize: "sf-semibold",
|
|
1219
|
+
fontSize: 14,
|
|
1220
|
+
color: Colours.TEXT_DARKEST,
|
|
1221
|
+
marginBottom: 4,
|
|
1222
|
+
},
|
|
1223
|
+
phoneText: {
|
|
1224
|
+
fontSize: "sf-medium",
|
|
1225
|
+
fontSize: 14,
|
|
1226
|
+
color: Colours.TEXT_LIGHT,
|
|
1227
|
+
},
|
|
1228
|
+
textSectionInner: {
|
|
1229
|
+
flexDirection: "row",
|
|
1230
|
+
justifyContent: "space-between",
|
|
1231
|
+
alignItems: "center",
|
|
1232
|
+
marginTop: 8,
|
|
1233
|
+
},
|
|
1234
|
+
textSectionLabel: {
|
|
1235
|
+
fontFamily: "sf-semibold",
|
|
1236
|
+
fontSize: 12,
|
|
1237
|
+
lineHeight: 24,
|
|
1238
|
+
color: Colours.TEXT_DARKEST,
|
|
1239
|
+
},
|
|
1240
|
+
textSectionTextContainer: {
|
|
1241
|
+
flexDirection: "row",
|
|
1242
|
+
alignItems: "center",
|
|
1243
|
+
},
|
|
1244
|
+
textSectionText: {
|
|
1245
|
+
fontFamily: "sf-regular",
|
|
1246
|
+
fontSize: 13,
|
|
1247
|
+
lineHeight: 24,
|
|
1248
|
+
color: Colours.TEXT_LIGHT,
|
|
1249
|
+
},
|
|
1250
|
+
textSectionAngleRight: {
|
|
1251
|
+
fontSize: 24,
|
|
1252
|
+
marginLeft: 10,
|
|
1253
|
+
lineHeight: 24,
|
|
1254
|
+
},
|
|
1255
|
+
customLabel: {
|
|
1256
|
+
fontFamily: "sf-bold",
|
|
1257
|
+
fontSize: 14,
|
|
1258
|
+
color: Colours.TEXT_DARKEST,
|
|
1259
|
+
},
|
|
1260
|
+
customText: {
|
|
1261
|
+
fontFamily: "sf-regular",
|
|
1262
|
+
fontSize: 16,
|
|
1263
|
+
color: Colours.TEXT_DARKEST,
|
|
1264
|
+
paddingVertical: 8,
|
|
1265
|
+
},
|
|
1266
|
+
customImage: {
|
|
1267
|
+
marginTop: 8,
|
|
1268
|
+
},
|
|
1269
|
+
customDocument: {
|
|
1270
|
+
marginTop: 8,
|
|
1271
|
+
marginBottom: 16,
|
|
1272
|
+
},
|
|
1273
|
+
customStaticTitle: {
|
|
1274
|
+
fontSize: 20,
|
|
1275
|
+
fontFamily: "sf-semibold",
|
|
1276
|
+
color: Colours.TEXT_DARKEST,
|
|
1277
|
+
marginBottom: 10,
|
|
1278
|
+
},
|
|
1279
|
+
customStaticText: {
|
|
1280
|
+
fontSize: 17,
|
|
1281
|
+
fontFamily: "sf-regular",
|
|
1282
|
+
color: Colours.TEXT_DARKEST,
|
|
1283
|
+
lineHeight: 24,
|
|
1284
|
+
marginBottom: 10,
|
|
1285
|
+
},
|
|
1286
|
+
documentContainer: {
|
|
1287
|
+
flexDirection: "row",
|
|
1288
|
+
alignItems: "center",
|
|
1289
|
+
justifyContent: "space-between",
|
|
1290
|
+
paddingVertical: 4,
|
|
1291
|
+
},
|
|
1292
|
+
documentTypeContainer: {
|
|
1293
|
+
width: 50,
|
|
1294
|
+
height: 60,
|
|
1295
|
+
justifyContent: "center",
|
|
1296
|
+
alignItems: "center",
|
|
1297
|
+
borderRadius: 5,
|
|
1298
|
+
marginRight: 8,
|
|
1299
|
+
},
|
|
1300
|
+
documentTypeText: {
|
|
1301
|
+
color: "#fff",
|
|
1302
|
+
fontFamily: "sf-semibold",
|
|
1303
|
+
textAlign: "center",
|
|
1304
|
+
},
|
|
1305
|
+
documentText: {
|
|
1306
|
+
flex: 1,
|
|
1307
|
+
fontFamily: "sf-semibold",
|
|
1308
|
+
fontSize: 16,
|
|
1309
|
+
color: "#65686D",
|
|
1310
|
+
},
|
|
1311
|
+
externalSyncContainer: {
|
|
1312
|
+
backgroundColor: "#fff",
|
|
1313
|
+
marginTop: 16,
|
|
1314
|
+
borderRadius: 8,
|
|
1315
|
+
padding: 16,
|
|
1316
|
+
},
|
|
1317
|
+
externalSyncHeader: {
|
|
1318
|
+
flexDirection: "row",
|
|
1319
|
+
justifyContent: "space-between",
|
|
1320
|
+
alignItems: "center",
|
|
1321
|
+
marginBottom: 12,
|
|
1322
|
+
paddingBottom: 12,
|
|
1323
|
+
borderBottomWidth: 1,
|
|
1324
|
+
borderBottomColor: Colours.LINEGREY,
|
|
1325
|
+
},
|
|
1326
|
+
externalSyncTitle: {
|
|
1327
|
+
fontFamily: "sf-semibold",
|
|
1328
|
+
fontSize: 16,
|
|
1329
|
+
color: Colours.TEXT_DARKEST,
|
|
1330
|
+
},
|
|
1331
|
+
externalSyncIcon: {
|
|
1332
|
+
fontSize: 20,
|
|
1333
|
+
},
|
|
1334
|
+
externalSyncContent: {
|
|
1335
|
+
paddingTop: 4,
|
|
1336
|
+
},
|
|
1337
|
+
externalSyncRow: {
|
|
1338
|
+
flexDirection: "row",
|
|
1339
|
+
marginBottom: 10,
|
|
1340
|
+
},
|
|
1341
|
+
externalSyncLabel: {
|
|
1342
|
+
fontFamily: "sf-semibold",
|
|
1343
|
+
fontSize: 14,
|
|
1344
|
+
color: Colours.TEXT_DARK,
|
|
1345
|
+
width: 100,
|
|
1346
|
+
},
|
|
1347
|
+
externalSyncValue: {
|
|
1348
|
+
fontFamily: "sf-regular",
|
|
1349
|
+
fontSize: 14,
|
|
1350
|
+
color: Colours.TEXT_DARKEST,
|
|
1351
|
+
flex: 1,
|
|
1352
|
+
},
|
|
1134
1353
|
});
|
|
1135
1354
|
|
|
1136
|
-
const mapStateToProps = state => {
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1355
|
+
const mapStateToProps = (state) => {
|
|
1356
|
+
return {
|
|
1357
|
+
user: state.user,
|
|
1358
|
+
colourBrandingMain: Colours.getMainBrandingColourFromState(state),
|
|
1359
|
+
jobs: state[values.reducerKey].jobs,
|
|
1360
|
+
statusTypes: state[values.reducerKey].jobstatuses,
|
|
1361
|
+
hideSeen: state[values.reducerKey].hideSeen,
|
|
1362
|
+
};
|
|
1144
1363
|
};
|
|
1145
1364
|
|
|
1146
|
-
export default connect(mapStateToProps, {
|
|
1365
|
+
export default connect(mapStateToProps, {
|
|
1366
|
+
jobAdded,
|
|
1367
|
+
jobStatusesUpdate,
|
|
1368
|
+
jobHideSeenUpdate,
|
|
1369
|
+
})(RequestDetail);
|