mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 13:23:35 +00:00
Feat/block improvements (#95)
* feat/89-block-improvements style: replace reload icon * feat/block-feat/block-improvements add cursor buttons * feat/block-improvements hover to create * feat/block-improvements change settings in modal * feat/block-improvements version bump
This commit is contained in:
@@ -20,18 +20,18 @@ export const requestPatch = async (data) => {
|
||||
|
||||
export const requestReorder = async (data) => {
|
||||
const action = 'reorder';
|
||||
return await axios.patch(eventsURL + '/' + action, data);
|
||||
return await axios.patch(`${eventsURL}/${action}`, data);
|
||||
};
|
||||
|
||||
export const requestApplyDelay = async (eventId) => {
|
||||
const action = 'applydelay';
|
||||
return await axios.patch(eventsURL + '/' + action + '/' + eventId);
|
||||
return await axios.patch(`${eventsURL}/${action}/${eventId}`);
|
||||
};
|
||||
|
||||
export const requestDelete = async (eventId) => {
|
||||
return await axios.delete(eventsURL + '/' + eventId);
|
||||
return await axios.delete(`${eventsURL}/${eventId}`);
|
||||
};
|
||||
|
||||
export const requestDeleteAll = async () => {
|
||||
return await axios.delete(eventsURL + '/all');
|
||||
return await axios.delete(`${eventsURL}/all`);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user