Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/shibui-2393' into featur…
Browse files Browse the repository at this point in the history
…e/shibui-2393
  • Loading branch information
chasegawa committed Dec 6, 2022
2 parents 3915e86 + 6e803a6 commit cd4594b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function DynamicRegistrationList ({entities, children, onChangeGroup, onD
className="form-control"
onChange={(event) => onChangeGroup(reg, event.target.value)}
value={reg.idOfOwner ? reg.idOfOwner : ''}
disabled={loadingGroups}
disabled={loadingGroups || reg.enabled}
disablevalidation="true">
<option>Select Group</option>
{groups.map((g, ridx) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function DynamicRegistrationDetail () {
className="form-control form-control-sm"
onChange={({target: {value}}) => changeGroup({ registration: detail, group: value })}
value={detail.idOfOwner}
disabled={loadingGroups}
disabled={loadingGroups || detail.enabled}
disablevalidation="true">
<option>Select Group</option>
{groups.map((g, ridx) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ export const DynamicRegistrationApi = createApi({
url: `/DynamicRegistrations`
}),
providesTags: ['DynamicRegistration'],
// transformResponse: (registrations) => [...registrations.map(r => ({...r, enabled: true}))]
}),
selectDynamicRegistration: builder.query({
query: ({id}) => ({
url: `/DynamicRegistration/${id}`
}),
providesTags: ['DynamicRegistration'],
// transformResponse: (reg) => ({...reg, enabled: true})
}),
getDisabledRegistrations: builder.query({
query: () => ({
Expand Down

0 comments on commit cd4594b

Please sign in to comment.