mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-10 15:57:30 -05:00
forward progress
This commit is contained in:
@@ -131,6 +131,10 @@ yarn start
|
||||
|
||||
This should build the frontend and open a browser. In order to have all the cookies work correctly, you have to use the same domain name. Make sure you have setup the local domains as described above. Then goto the base domain, for me that is openmhz.test, at port 3000 `openmhz.test:3000`
|
||||
|
||||
## Upgrading a "Frontend" server
|
||||
|
||||
https://create-react-app.dev/docs/updating-to-new-releases/
|
||||
|
||||
|
||||
## Managing MongoDB
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ export const Groups = (args) => {
|
||||
|
||||
export const Calls = (args) => {
|
||||
|
||||
const { data, isError, isLoading, isSuccess,error } = useGetCallsQuery(args.shortName);
|
||||
const { data, isError, isLoading, isSuccess,error } = useGetCallsQuery({shortName: args.shortName});
|
||||
|
||||
let content
|
||||
|
||||
|
||||
@@ -27,9 +27,10 @@ export const apiSlice = createApi({
|
||||
}),
|
||||
getCalls: builder.query({
|
||||
// The URL for the request is '/fakeApi/posts'
|
||||
query: (shortName) => ({
|
||||
query: ({shortName,filterType=0,filterCode=0}) => ({
|
||||
url: `/${shortName}/calls`,
|
||||
method: "GET" //, params: { filterType, filterCode },
|
||||
method: "GET",
|
||||
params: { filterType, filterCode },
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user