Skip to content

Commit

Permalink
Close icon hinzugefügt
Browse files Browse the repository at this point in the history
  • Loading branch information
julia221501 committed Sep 22, 2022
1 parent ed84449 commit 1de9397
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
7 changes: 4 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ import {
faTrashAlt,
faInfoCircle,
faCheck,
faInfo,
faFilePdf,
faArrowLeft,
} from "@fortawesome/free-solid-svg-icons";

library.add(
faBars,
faPencilAlt,
Expand Down Expand Up @@ -71,7 +71,8 @@ library.add(
faTrashAlt,
faInfoCircle,
faCheck,
faInfo
faFilePdf,
faArrowLeft
);

// Vue.component("font-awesome-icon", FontAwesomeIcon);
Expand Down
17 changes: 12 additions & 5 deletions src/views/Pdf.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<template>
<button class="button" @click="createPdf">
<span class="icon">
<font-awesome-icon icon="fa-solid fa-file-pdf" />
<font-awesome-icon icon="file-pdf" />
</span>
<span>Create PDF</span>
</button>

<button class="button" onclick="window.close()">
<span class="icon">
<font-awesome-icon icon="fa-solid fa-square-xmark" />
<font-awesome-icon icon="arrow-left" />
</span>
<span>Tab schließen</span>
</button>
Expand All @@ -34,7 +34,16 @@
<p>{{ alter.human ? "" : "Mensch: Nein" }}</p>
<p>Geschlecht: {{ alter.currentGender }}</p>
<p>{{ alter.deceased ? "Verstorben: Ja" : "" }}</p>
<p>Beziehung: {{alter.edgeType == 1 ? "besteht" : alter.edgeType == 2 ? "multiplex" : "keine aktuelle Beziehung"}}</p>
<p>
Beziehung:
{{
alter.edgeType == 1
? "besteht"
: alter.edgeType == 2
? "multiplex"
: "keine aktuelle Beziehung"
}}
</p>
<p>{{ alter.note.length >= 1 ? "Notiz: " + alter.note : "" }}</p>
</div>
</div>
Expand All @@ -49,8 +58,6 @@ import "@/components/ViewOptionsPanel";
import { useStore } from "@/store";
import { computed } from "vue";
export default {
name: "Pdf",
components: {
Expand Down

0 comments on commit 1de9397

Please sign in to comment.