Reworking actions
All checks were successful
Music Collection CI Workflow / test (./backend) (push) Successful in 22s
Music Collection CI Workflow / test (./frontend) (push) Successful in 28s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/msuic-collection-backend, ./backend) (push) Successful in 49s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Successful in 1m42s
Music Collection CI Workflow / deploy (push) Successful in 22s
All checks were successful
Music Collection CI Workflow / test (./backend) (push) Successful in 22s
Music Collection CI Workflow / test (./frontend) (push) Successful in 28s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/msuic-collection-backend, ./backend) (push) Successful in 49s
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Successful in 1m42s
Music Collection CI Workflow / deploy (push) Successful in 22s
This commit is contained in:
parent
9f66250c4f
commit
5184d8f641
@ -21,7 +21,7 @@ export default function Page() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function fetchAlbums() {
|
async function fetchAlbums() {
|
||||||
try {
|
try {
|
||||||
const response = getAlbums();
|
const response = await getAlbums();
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
setAlbums(data);
|
setAlbums(data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -37,8 +37,8 @@ export default function Page() {
|
|||||||
|
|
||||||
const formData = new FormData(event.currentTarget);
|
const formData = new FormData(event.currentTarget);
|
||||||
try {
|
try {
|
||||||
const response = createAlbum(formData);
|
const response = await createAlbum(formData);
|
||||||
const data = response.json();
|
const data = await response.json();
|
||||||
console.log(data);
|
console.log(data);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error creating Album: ", error);
|
console.error("Error creating Album: ", error);
|
||||||
@ -76,7 +76,7 @@ export default function Page() {
|
|||||||
<>
|
<>
|
||||||
<div className="container">
|
<div className="container">
|
||||||
<IconButton aria-label="Add Album" size="large" onClick={handleCreate}>
|
<IconButton aria-label="Add Album" size="large" onClick={handleCreate}>
|
||||||
<AddCircleOutline fontSize="inherit" />
|
<AddCircleOutline fontSize="inherit" color="success"/>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<table className="u-full-width">
|
<table className="u-full-width">
|
||||||
<thead>
|
<thead>
|
||||||
@ -105,10 +105,10 @@ export default function Page() {
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<IconButton aria-label="Edit Album" size="small" id={album.id.toString()} onClick={handleEdit}>
|
<IconButton aria-label="Edit Album" size="small" id={album.id.toString()} onClick={handleEdit}>
|
||||||
<Edit fontSize="inherit" />
|
<Edit fontSize="inherit" color="success"/>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton aria-label="Delete Album" size="small" id={album.id.toString()} onClick={handleEdit}>
|
<IconButton aria-label="Delete Album" size="small" id={album.id.toString()} onClick={handleEdit}>
|
||||||
<Delete fontSize="inherit" />
|
<Delete fontSize="inherit" color="success"/>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user