@plusscommunities/pluss-maintenance-web-feedback 1.3.1-beta.0 → 1.3.2-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/index.js +14 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import moment from 'moment';
|
|
|
8
8
|
import { Icon } from '@plusscommunities/pluss-icons';
|
|
9
9
|
import * as PlussCore from '@plusscommunities/pluss-core-web';
|
|
10
10
|
import { PERMISSION_CATEGORIES, IMPORTANCE_LEVELS, Colours as Colours$4 } from '@plusscommunities/pluss-core-web';
|
|
11
|
-
import { Table
|
|
11
|
+
import { Table } from 'react-bootstrap';
|
|
12
12
|
import { Link } from 'react-router-dom';
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
14
|
import Textarea from 'react-textarea-autosize';
|
|
@@ -4687,21 +4687,14 @@ class AddJob extends Component {
|
|
|
4687
4687
|
}, 100);
|
|
4688
4688
|
}
|
|
4689
4689
|
}
|
|
4690
|
-
|
|
4690
|
+
getTypeOptions() {
|
|
4691
4691
|
var {
|
|
4692
|
-
types
|
|
4693
|
-
type
|
|
4692
|
+
types
|
|
4694
4693
|
} = this.state;
|
|
4695
|
-
return types.map(ev => {
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
active: type === ev.typeName,
|
|
4700
|
-
children: ev.typeName
|
|
4701
|
-
}, ev.typeName);
|
|
4702
|
-
}
|
|
4703
|
-
return null;
|
|
4704
|
-
});
|
|
4694
|
+
return types.filter(Boolean).map(ev => ({
|
|
4695
|
+
Key: ev.typeName,
|
|
4696
|
+
Title: ev.typeName
|
|
4697
|
+
}));
|
|
4705
4698
|
}
|
|
4706
4699
|
renderSuccess() {
|
|
4707
4700
|
if (!this.state.success) return null;
|
|
@@ -5178,23 +5171,14 @@ class AddJob extends Component {
|
|
|
5178
5171
|
showError: () => {
|
|
5179
5172
|
return this.state.showWarnings && _.isEmpty(this.state.room);
|
|
5180
5173
|
}
|
|
5181
|
-
}), /*#__PURE__*/
|
|
5182
|
-
|
|
5174
|
+
}), /*#__PURE__*/jsx(Components$2.DropdownInput, {
|
|
5175
|
+
label: values.textJobType,
|
|
5176
|
+
value: this.state.type,
|
|
5177
|
+
options: this.getTypeOptions(),
|
|
5178
|
+
onSelect: this.onSelectType,
|
|
5179
|
+
style: {
|
|
5183
5180
|
marginBottom: 15
|
|
5184
|
-
}
|
|
5185
|
-
children: [/*#__PURE__*/jsx(Components$2.Text, {
|
|
5186
|
-
type: "formLabel",
|
|
5187
|
-
children: values.textJobType
|
|
5188
|
-
}), /*#__PURE__*/jsx(DropdownButton, {
|
|
5189
|
-
style: {
|
|
5190
|
-
minWidth: 80
|
|
5191
|
-
},
|
|
5192
|
-
bsStyle: "default",
|
|
5193
|
-
title: this.state.type,
|
|
5194
|
-
id: "typeSelect",
|
|
5195
|
-
onSelect: this.onSelectType,
|
|
5196
|
-
children: this.renderTypeOptions()
|
|
5197
|
-
})]
|
|
5181
|
+
}
|
|
5198
5182
|
}), !_.isEmpty(customFields) || values.forceCustomFields ? this.renderCustomFields() : this.renderDefaultFields()]
|
|
5199
5183
|
})
|
|
5200
5184
|
});
|