Skip to content
Snippets Groups Projects
Commit 8e7f13a5 authored by Daniel Høyland's avatar Daniel Høyland
Browse files

added so the forms on sensorpage and userpage is cleared when canceling

parent a2309ec8
No related branches found
No related tags found
2 merge requests!87Added sorting to both user page and sensor page, fixed up in adding, editing...,!86Added sorting to both user page and sensor page, fixed up in adding, editing...
......@@ -201,7 +201,7 @@ function UserConfig() {
<FormItem>
<FormLabel>Password</FormLabel>
<FormControl>
<Input placeholder="Password" {...field}/>
<Input type='password' placeholder="Password" {...field}/>
</FormControl>
</FormItem>
)}
......@@ -221,7 +221,7 @@ function UserConfig() {
<br/>
<AlertDialogFooter>
<AlertDialogAction type="submit">Submit</AlertDialogAction>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogCancel onClick={()=>{form.reset()}}>Cancel</AlertDialogCancel>
</AlertDialogFooter>
</form>
</Form>
......@@ -396,7 +396,7 @@ function UserConfig() {
form.setValue("permission", user.permission);
}
}}>Done</AlertDialogAction>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogCancel onClick={()=>{form.reset}}>Cancel</AlertDialogCancel>
</AlertDialogFooter>
</form>
</Form>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment