Skip to content

Commit

Permalink
Merge pull request #971 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
Dev to release
  • Loading branch information
KelvinTegelaar authored Jun 17, 2022
2 parents 34683d7 + 0c35ee3 commit 2a241ae
Show file tree
Hide file tree
Showing 23 changed files with 1,110 additions and 526 deletions.
74 changes: 2 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cipp",
"version": "1.5.1",
"version": "2.6.1",
"description": "The CyberDrain Improved Partner Portal is a portal to help manage administration for Microsoft Partners.",
"homepage": "https://cipp.app/",
"bugs": {
Expand Down Expand Up @@ -54,8 +54,6 @@
"prop-types": "^15.7.2",
"react": "^17.0.2",
"react-app-polyfill": "^2.0.0",
"react-bootstrap-table2-paginator": "^2.1.2",
"react-bootstrap-table2-toolkit": "^2.1.3",
"react-copy-to-clipboard": "^5.0.4",
"react-data-table-component": "^7.4.5",
"react-dom": "^17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion public/version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.1
2.7.0
5 changes: 5 additions & 0 deletions src/_nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ const _nav = [
name: 'Add Office App',
to: '/endpoint/applications/add-office-app',
},
{
component: CNavItem,
name: 'Add MSP App',
to: '/endpoint/applications/add-rmm-app',
},
],
},
{
Expand Down
41 changes: 29 additions & 12 deletions src/components/forms/RFFComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,18 +293,35 @@ export const RFFSelectSearch = ({
return (
<div>
<CFormLabel htmlFor={name}>{label}</CFormLabel>
<Select
className="react-select-container"
classNamePrefix="react-select"
{...input}
isClearable={true}
name={name}
id={name}
disabled={disabled}
options={selectSearchvalues}
placeholder={placeholder}
isMulti={multi}
/>
{onChange && (
<Select
className="react-select-container"
classNamePrefix="react-select"
{...input}
isClearable={true}
name={name}
id={name}
disabled={disabled}
options={selectSearchvalues}
placeholder={placeholder}
isMulti={multi}
onChange={onChange}
/>
)}
{!onChange && (
<Select
className="react-select-container"
classNamePrefix="react-select"
{...input}
isClearable={true}
name={name}
id={name}
disabled={disabled}
options={selectSearchvalues}
placeholder={placeholder}
isMulti={multi}
/>
)}
<RFFCFormFeedback meta={meta} />
</div>
)
Expand Down
13 changes: 7 additions & 6 deletions src/components/utilities/UsageLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,32 @@ import { CCard, CCardHeader } from '@coreui/react'
import { useDispatch, useSelector } from 'react-redux'
import { setDefaultusageLocation } from 'src/store/features/app'
import countryList from 'src/data/countryList'
import SelectSearch, { fuzzySearch } from 'react-select-search'
import Select from 'react-select'

const UsageLocation = () => {
const dispatch = useDispatch()
const usagelocation = useSelector((state) => state.app.usageLocation)
const Switchusage = (t) => {
const Switchusage = (t, n) => {
// console.log(t)
dispatch(setDefaultusageLocation({ usageLocation: t }))
}

return (
<CCard>
<CCardHeader>Select default usage location</CCardHeader>
<SelectSearch
<Select
className="react-select-container"
classNamePrefix="react-select"
options={countryList.map(({ Code, Name }) => ({
value: Code,
name: Name,
label: Name,
}))}
isClearable={true}
name="usageLocation"
value={usagelocation}
placeholder="Type to search..."
label="Usage Location"
onChange={(value) => Switchusage(value)}
search
filterOptions={fuzzySearch}
/>
</CCard>
)
Expand Down
Loading

0 comments on commit 2a241ae

Please sign in to comment.