update
This commit is contained in:
parent
817ebd25cc
commit
ebbba6815a
|
|
@ -120,7 +120,7 @@ class Setting extends Component {
|
|||
this.getLanguage(result.data.project_language_id);
|
||||
this.setState({
|
||||
projectName:result.data.project_name,
|
||||
private_check: !result.data.private,
|
||||
private_check: result.data.private,
|
||||
prview_check:result.data.pr_view_admin,
|
||||
loading:false,
|
||||
project_units:units,
|
||||
|
|
@ -178,10 +178,10 @@ class Setting extends Component {
|
|||
axios.patch(url, {
|
||||
name: values.project_name,
|
||||
description: values.project_description,
|
||||
private: !private_check,
|
||||
identifier:values.project_identifier,
|
||||
pr_view_admin,
|
||||
...values,
|
||||
private: private_check,
|
||||
project_language_id , project_category_id
|
||||
}).then((result) => {
|
||||
if (result) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue