added ImportPopup

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

No files matched your search

+2 -1
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)
}