Questions tagged [admin-on-rest]

Use it for questions about the admin-on-rest admin framework for React.js

Usage questions about the admin-on-rest framework.

501 questions
3
votes
1 answer

How to build facebook login in admin on rest?

const responseFacebook = (response) => { console.log(response); const payload = { id: response.id, name: response.name, email: response.email, token: response.accessToken } return payload …
Jasmin Virdi
  • 101
  • 1
  • 6
3
votes
2 answers

Add Nested resource using admin-on-rest

I'm using admin-on-rest. What a great framework ! It is working quite well for my flat resources. I'm retrieving a list of projects /projects. I've implemented a ProjectEdit View to edit a given project /projects/:id export const ProjectEdit =…
BaptWaels
  • 1,646
  • 2
  • 14
  • 17
3
votes
2 answers

Conditional Tab/FormTab rendering in TabbedShowLayout/TabbedForm

I would like to display a Tab inside the TabbedShowLayout only if the record has a specific property. I tried to create a custom component as below: const EventsTab = ({...props, record}) => { return record && record.hasEvents &&
giokokos
  • 602
  • 1
  • 6
  • 20
3
votes
2 answers

Wrapper component for admin-on-rest

I would like to create a new component that contains Inputs and Fields from aor and use it in and as below: const WrapperComp = () => { return (
Title…
giokokos
  • 602
  • 1
  • 6
  • 20
3
votes
0 answers

admin-on-rest set up project in IDE's

After reading guide I had been configure app, but IDE's (IDEA based like WebStorm/PHPStorm and VSCode) can't resolve imports from admin-on-rest, but react imports works well. WebStorm says Cannot resolve symbol %component_name% So what I should set…
Mister G
  • 175
  • 2
  • 12
3
votes
0 answers

React error when using ReferenceArrayInput in admin on rest

I'm trying to use the ReferenceInputArray field in admin on rest but i get this…
annared
  • 81
  • 4
3
votes
1 answer

Does redux form field warnings work in Admin on rest inputs?

I am referring to the below documentation, Tip: The props you pass to and end up as reduxForm() parameters. This means that, in addition to validate, you can also pass warn or asyncValidate functions. Read the…
3
votes
2 answers

How to manage DELETE response status code 204 with admin-on-rest?

I'm trying to integrate admin-on-rest with an api sending a 204 HTTP response without a body on successful DELETE. So on DELETE I get the error message : REST response must contain a data key I'm using jsonServerRestClient and I wonder how could I…
ExsiDev
  • 31
  • 2
3
votes
3 answers

React restClient admin-on-rest

admin-on-rest allows consuming of any JSON response by writing custom rest clients. The examples in the documentation are for consuming JSON from json-server project which is straightforward. I was wondering how easy is it to consume this api…
Chida
  • 421
  • 3
  • 11
2
votes
1 answer

How can one capture user login success on react admin v3.1?

I am trying to capture a user login success by looking for any auth actions but I don't see any in the redux dev tool that has anything to do with AUTH? I want to use this to make an API call to fetch more data. I do see stuff like…
heyaj19
  • 41
  • 3
2
votes
1 answer

Common persons table with specific tables for teachers and students or separate tables?

I'm using react-admin with hasura as an API for Postgres. I have a need for different entities that are all basically a person but with different purposes. Eg. a student and a teacher. I am thinking, given the similar attributes, it would be good to…
Andrija Ćeranić
  • 1,633
  • 11
  • 14
2
votes
0 answers

Material ui Date Picker show selected value -1

Material UI Date Picker show default value -1 for us time zone but show the correct date for Indian time zone Relevant imports import DatePicker from 'material-ui/DatePicker'; My state default value state = { coverDate:…
Aukta
  • 163
  • 1
  • 11
2
votes
2 answers

React-Admin - Warning: Encountered two children with the same key

When I update a resource, it returns to List View and correctly updates the resource, but for a moment the List View blinks and console reports a warning: Warning: Encountered two children with the same key, `2`. Keys should be unique so that…
Sebastian
  • 1,225
  • 1
  • 16
  • 27
2
votes
2 answers

Tree structure in react-admin

I want to represent my nested data in tree structure. Is there any way to show nested data in tree view using react-admin?
Chetan Gawai
  • 2,361
  • 1
  • 25
  • 36
2
votes
1 answer

React-Admin: How can we dispatch a store action from within the `authProvider` code?

In the async fetch of the AUTH_LOGIN we want to dispatch an action after we fetch data from additional endpoints (apart from the login endpoint, for example we call another endpoint to bring data for the account, etc.). We have all in place (action,…
user2078023
  • 1,137
  • 1
  • 10
  • 28