Skip to content
Snippets Groups Projects
Commit 341ae57d authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Improved upload API

parent 13d5f7cb
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,7 @@ element.addEventListener("change", () => { ...@@ -68,6 +68,7 @@ element.addEventListener("change", () => {
image_error.classList.add("alert", "error"); image_error.classList.add("alert", "error");
image_error.innerText = JSON.stringify(json.errors); image_error.innerText = JSON.stringify(json.errors);
image_container.insertBefore(image_error, image_description); image_container.insertBefore(image_error, image_description);
image_container.classList.remove("uploading");
} }
console.log(json); console.log(json);
......
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
left: 0 left: 0
bottom: 0 bottom: 0
will-change: left, right will-change: left, right
animation: indeterminate 4.2s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite
&::after &::after
content: '' content: ''
position: absolute position: absolute
...@@ -173,8 +173,8 @@ ...@@ -173,8 +173,8 @@
left: 0 left: 0
bottom: 0 bottom: 0
will-change: left, right will-change: left, right
animation: indeterminate-short 4.2s cubic-bezier(0.165, 0.84, 0.44, 1) infinite animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite
animation-delay: 2.25s animation-delay: 1.125s
&:not(.uploading).progress &:not(.uploading).progress
display: none display: none
.image .image
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment