AddFruit code cleaning.

This commit is contained in:
2020-12-08 12:40:45 +01:00
parent 2a1cf5ae8f
commit 065ff6f3ff

View File

@@ -17,7 +17,7 @@
<!-- image finder (with Unsplash API) -->
<ImageUnsplash
@getValue="getImage"
@getValue="url => (fruit.image = url)"
label="Image"
containerClass="form-field"
placeholder="Search: strawberry, apple ..."
@@ -108,9 +108,6 @@ export default {
document.body.classList.remove("is-overlayed");
},
methods: {
getImage(url) {
this.fruit.image = url;
},
async checkForm(e) {
this.fruit.expires = new Date(this.fruit.expires);
await this.$store
@@ -189,25 +186,6 @@ export default {
margin: 0;
width: 50%;
}
// :first-child {
// margin-right: 1rem;
// width: 60%;
// @media screen and (min-width: @sm) {
// width: 100%;
// }
// }
// [type="color"] {
// width: calc(40% - 1rem);
// flex-shrink: 0;
// height: 48px;
// @media screen and (min-width: @sm) {
// width: calc(35% - 1rem);
// }
// }
}
.actions {