mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
Fix bug on validateUser / housekeeping
This commit is contained in:
@@ -1 +0,0 @@
|
||||
- When changing route with nothing edited, pass user_data / group_data through location to maintain spot
|
@@ -1,10 +1,8 @@
|
||||
import React, { useState } from "react";
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
import { useSelector, useDispatch } from "react-redux";
|
||||
import { compose, withProps } from "recompose";
|
||||
import { Link } from "react-router-dom";
|
||||
import PropTypes from "prop-types";
|
||||
import { jhapiRequest } from "../../util/jhapiUtil";
|
||||
import regeneratorRuntime from "regenerator-runtime";
|
||||
import GroupSelect from "../GroupSelect/GroupSelect";
|
||||
|
||||
const GroupEdit = (props) => {
|
||||
@@ -146,7 +144,7 @@ GroupEdit.propTypes = {
|
||||
removeFromGroup: PropTypes.func,
|
||||
deleteGroup: PropTypes.func,
|
||||
updateGroups: PropTypes.func,
|
||||
findUser: PropTypes.func,
|
||||
validateUser: PropTypes.func,
|
||||
};
|
||||
|
||||
export default GroupEdit;
|
||||
|
@@ -34,7 +34,7 @@ const withAPI = withProps((props) => ({
|
||||
deleteUser: (username) => jhapiRequest("/users/" + username, "DELETE"),
|
||||
findUser: (username) => jhapiRequest("/users/" + username, "GET"),
|
||||
validateUser: (username) =>
|
||||
findUser(username)
|
||||
jhapiRequest("/users/" + username, "GET")
|
||||
.then((data) => data.status)
|
||||
.then((data) => (data > 200 ? false : true)),
|
||||
failRegexEvent: () =>
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user