added ImportPopup

This commit is contained in:
Gani Georgiev
2022-08-06 08:03:34 +03:00
parent 93ab5fbea2
commit 4e58e7ad6a
11 changed files with 118 additions and 660 deletions

View File

@@ -169,6 +169,7 @@ func (api *collectionApi) delete(c echo.Context) error {
return handlerErr
}
// @todo add event
func (api *collectionApi) bulkImport(c echo.Context) error {
form := forms.NewCollectionsImport(api.app)
@@ -182,5 +183,5 @@ func (api *collectionApi) bulkImport(c echo.Context) error {
return rest.NewBadRequestError("Failed to import the submitted collections.", submitErr)
}
return nil
return c.NoContent(http.StatusNoContent)
}