-
-
-
-
-
- *Bitte geben sie eine Kategorie ein!
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 3582ff3..2ceb8b5 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -32,7 +32,7 @@ export class AppComponent {
}
createBlogEntry(title: string, image: string, kategorie: string, menge: string, kommentar: string, ) {
- if (title && image && kommentar && kategorie) {
+ //if (title && image && kommentar && kategorie) {
const entry = new BlogEntry();
entry.title = title;
entry.image = image;
@@ -40,7 +40,7 @@ export class AppComponent {
entry.menge = menge;
entry.kommentar = kommentar;
this.entries.push(entry);
- }
+ //}
}
deleteAllEntries() {
console.log(this.entries.length);
@@ -56,7 +56,8 @@ export class AppComponent {
this.entries.splice(index-1, 1);
}
}
- // Kategorie mit Drop Down Menu wählen
+
+ // Kategorie mit Drop Down Menu wählen
changeKategorie(e) {
console.log(e.value);
this.kategorieName.setValue(e.target.value, {
diff --git a/src/styles.css b/src/styles.css
index 5479761..d8e07c4 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -5,7 +5,7 @@ body {
.form {
background-color: #eee;
- width: 580px; /* Breite des Formulars */
+ width: 500px; /* Breite des Formulars */
padding: 20px;
border: 1px solid #8c8c8c;
position: absolute;
@@ -23,7 +23,7 @@ label {
input,
textarea {
- width: 550px;
+ width: 500px;
border: 1px solid #8c8c8c;
margin-bottom: 1em;
}
@@ -37,14 +37,14 @@ span.title {
}
.blog-entry {
- width: 600px;
+ width: 500px;
display: flex;
padding-bottom: 30px;
}
button {
- float: right;
- padding-right: 20px;
+ float: left;
+ padding-right: 10px;
}
.blog-image {