This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -279,16 +279,25 @@ export const RESOURCE_TYPE_OPTIONS = [
279
279
] ;
280
280
281
281
/**
282
- * status options
282
+ * job status options
283
283
*/
284
- export const STATUS_OPTIONS = [
284
+ export const JOB_STATUS_OPTIONS = [
285
285
{ value : "sourcing" , label : "sourcing" } ,
286
286
{ value : "in-review" , label : "in-review" } ,
287
287
{ value : "assigned" , label : "assigned" } ,
288
288
{ value : "closed" , label : "closed" } ,
289
289
{ value : "cancelled" , label : "cancelled" } ,
290
290
] ;
291
291
292
+ /**
293
+ * resource booking status options
294
+ */
295
+ export const RESOURCE_BOOKING_STATUS_OPTIONS = [
296
+ { value : "assigned" , label : "assigned" } ,
297
+ { value : "closed" , label : "closed" } ,
298
+ { value : "cancelled" , label : "cancelled" } ,
299
+ ] ;
300
+
292
301
/*
293
302
* show error message below the markdown editor when the markedown editor is disabled
294
303
*/
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { hasPermission } from "utils/permissions";
6
6
import { DISABLED_DESCRIPTION_MESSAGE } from "constants" ;
7
7
import {
8
8
RATE_TYPE_OPTIONS ,
9
- STATUS_OPTIONS ,
9
+ JOB_STATUS_OPTIONS ,
10
10
WORKLOAD_OPTIONS ,
11
11
RESOURCE_TYPE_OPTIONS ,
12
12
FORM_ROW_TYPE ,
@@ -120,7 +120,7 @@ export const getEditJobConfig = (
120
120
isRequired : true ,
121
121
validationMessage : "Please, select Status" ,
122
122
name : "status" ,
123
- selectOptions : STATUS_OPTIONS ,
123
+ selectOptions : JOB_STATUS_OPTIONS ,
124
124
disabled : ! hasPermission ( PERMISSIONS . UPDATE_JOB_STATUS ) ,
125
125
} ,
126
126
] ,
Original file line number Diff line number Diff line change 6
6
import moment from "moment" ;
7
7
import _ from "lodash" ;
8
8
import {
9
- STATUS_OPTIONS ,
9
+ RESOURCE_BOOKING_STATUS_OPTIONS ,
10
10
FORM_ROW_TYPE ,
11
11
FORM_FIELD_TYPE ,
12
12
} from "../../constants" ;
@@ -95,7 +95,7 @@ export const getEditResourceBookingConfig = (onSubmit) => {
95
95
isRequired : true ,
96
96
validationMessage : "Please, select Status" ,
97
97
name : "status" ,
98
- selectOptions : STATUS_OPTIONS ,
98
+ selectOptions : RESOURCE_BOOKING_STATUS_OPTIONS ,
99
99
} ,
100
100
] ,
101
101
onSubmit : onSubmit ,
You can’t perform that action at this time.
0 commit comments