Skip to content

Commit

Permalink
Reformatting code
Browse files Browse the repository at this point in the history
Co-authored-by: TheoThmn <s0586704@htw-berlin.de>
  • Loading branch information
ZieglerAaron and TheoThmn committed Jan 7, 2024
1 parent 43e7df8 commit 7156ac2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/components/MyCamerasList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
<div class="row row-cols-1 row-cols-md-3 g-4">
<div class="col" v-for="camera in cameras" :key="camera.id">
<div class="card ">
<button type="button" class="btn-close overlap-close" data-bs-toggle="modal" data-bs-target="#confirmDeleteModal" @click="selectedCameraId = camera.id" aria-label="löschen"></button>
<button type="button" class="btn-close overlap-close" data-bs-toggle="modal"
data-bs-target="#confirmDeleteModal" @click="selectedCameraId = camera.id"
aria-label="löschen"></button>
<img :src=camera.staticImageUrl class="card-image-top rounded-start" :alt="camera.name">
<div class="card-body">
<h5 class="card-title">{{ camera.name }}</h5>
Expand All @@ -19,7 +21,7 @@
<h5 style="margin-top: 1em">
Eingelegter Film
</h5>
<div class="row g-0" style="margin-bottom: 1em" >
<div class="row g-0" style="margin-bottom: 1em">
<div class="col-md-3">
<img :src=camera.roll.stock.staticImageUrl :alt=camera.roll.stock.name width="80" height="80">
</div>
Expand All @@ -33,7 +35,8 @@
<button type="button" class="btn btn-outline-primary" data-bs-toggle="modal"
data-bs-target="#developModal" @click="selectedCameraId = camera.id">Film entwickeln
</button>
<button type="button" class="btn btn-outline-primary" data-bs-toggle="modal" data-bs-target="#confirmRemoveModal" @click="selectedCameraId = camera.id">Film entfernen
<button type="button" class="btn btn-outline-primary" data-bs-toggle="modal"
data-bs-target="#confirmRemoveModal" @click="selectedCameraId = camera.id">Film entfernen
</button>
</div>
</div>
Expand Down Expand Up @@ -141,7 +144,7 @@
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Abbrechen</button>
<button type="button" class="btn btn-primary" @click="save()">Kamera hinzufügen</button>
</div>
</div>
Expand All @@ -156,12 +159,13 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Abbrechen</button>
<button type="button" class="btn btn-danger" @click="deleteCamera(selectedCameraId)">Löschen bestätigen</button>
<button type="button" class="btn btn-danger" @click="deleteCamera(selectedCameraId)">Löschen bestätigen
</button>
</div>
</div>
</div>
</div>
<!-- confirm remove modal -->
<!-- confirm remove modal -->
<div class="modal fade" id="confirmRemoveModal">
<div class="modal-dialog">
<div class="modal-content">
Expand Down

0 comments on commit 7156ac2

Please sign in to comment.