Skip to content

Commit

Permalink
fix(admin-ui): resolve all bugs displayed for admin-ui bug #308
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrydy committed Nov 26, 2021
1 parent 194e158 commit b7c9665
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/auth-server/redux/reducers/AcrReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ export default function acrReducer(state = INIT_STATE, action) {
acrs: action.payload.data,
loading: false,
}
} else {
return {
...state,
loading: false,
}
}

case PUT_ACRS:
Expand All @@ -41,6 +46,11 @@ export default function acrReducer(state = INIT_STATE, action) {
acrs: action.payload.data,
loading: false,
}
} else {
return {
...state,
loading: false,
}
}
default:
return {
Expand Down
10 changes: 10 additions & 0 deletions plugins/auth-server/redux/reducers/JsonConfigReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ export default function jsonConfigReducer(state = INIT_STATE, action) {
configuration: action.payload.data,
loading: false,
}
} else {
return {
...state,
loading: false,
}
}

case PATCH_JSON_CONFIG:
Expand All @@ -40,6 +45,11 @@ export default function jsonConfigReducer(state = INIT_STATE, action) {
configuration: action.payload.data,
loading: false,
}
} else {
return {
...state,
loading: false,
}
}
default:
return {
Expand Down
5 changes: 5 additions & 0 deletions plugins/auth-server/redux/reducers/JwksReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ export default function jwksReducer(state = INIT_STATE, action) {
jwks: action.payload.data,
loading: false,
}
} else {
return {
...state,
loading: false,
}
}
case RESET:
return {
Expand Down
10 changes: 10 additions & 0 deletions plugins/auth-server/redux/reducers/LoggingReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ export default function loggingReducer(state = INIT_STATE, action) {
logging: action.payload.data,
loading: false,
}
} else {
return {
...state,
loading: false,
}
}
case PUT_LOGGING:
return {
Expand All @@ -40,6 +45,11 @@ export default function loggingReducer(state = INIT_STATE, action) {
logging: action.payload.data,
loading: false,
}
} else {
return {
...state,
loading: false,
}
}

case RESET:
Expand Down
30 changes: 30 additions & 0 deletions plugins/auth-server/redux/reducers/ScopeReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ export default function scopeReducer(state = INIT_STATE, action) {
items: action.payload.data,
loading: false,
}
} else {
return {
...state,
loading: false,
}
}
case GET_SCOPE_BY_INUM:
return {
Expand All @@ -56,6 +61,11 @@ export default function scopeReducer(state = INIT_STATE, action) {
item: action.payload.data,
loading: false,
}
} else {
return {
...state,
loading: false,
}
}
case GET_SCOPE_BY_PATTERN:
return {
Expand All @@ -69,6 +79,11 @@ export default function scopeReducer(state = INIT_STATE, action) {
item: action.payload.data,
loading: false,
}
} else {
return {
...state,
loading: false,
}
}

case ADD_SCOPE:
Expand All @@ -83,6 +98,11 @@ export default function scopeReducer(state = INIT_STATE, action) {
items: [...state.items],
loading: false,
}
} else {
return {
...state,
loading: false,
}
}

case EDIT_SCOPE:
Expand All @@ -98,6 +118,11 @@ export default function scopeReducer(state = INIT_STATE, action) {
items: [...state.items],
loading: false,
}
} else {
return {
...state,
loading: false,
}
}
case DELETE_SCOPE:
return {
Expand All @@ -111,6 +136,11 @@ export default function scopeReducer(state = INIT_STATE, action) {
items: state.items.filter((i) => i.inum !== action.payload.data),
loading: false,
}
} else {
return {
...state,
loading: false,
}
}

case SET_ITEM:
Expand Down

0 comments on commit b7c9665

Please sign in to comment.