solved problem with not returning header by using self build url

This commit is contained in:
Maren Süwer
2018-09-11 11:17:11 +02:00
parent 75ba5f33b1
commit 00694da935
3 changed files with 19 additions and 18 deletions

View File

@@ -1,11 +1,7 @@
// @flow
import React from "react";
import { translate } from "react-i18next";
import {
Checkbox,
InputField,
SubmitButton
} from "@scm-manager/ui-components";
import { Checkbox, InputField, SubmitButton } from "@scm-manager/ui-components";
import TypeSelector from "./TypeSelector";
import type {
PermissionCollection,
@@ -113,6 +109,15 @@ class CreatePermissionForm extends React.Component<Props, State> {
type: this.state.type,
groupPermission: this.state.groupPermission
});
this.removeState();
};
removeState = () => {
this.setState({
name: "",
type: "READ",
groupPermission: false
});
};
handleTypeChange = (type: string) => {