Skip to content

Commit

Permalink
Merge pull request #143 from fhstp/pdf_anonymous2
Browse files Browse the repository at this point in the history
Pdf anonymous2
  • Loading branch information
alex-rind authored Jul 8, 2024
2 parents 7e5c375 + eced421 commit d735cd7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# easyNWK Version History

## version 2.3.0, released xx Jun 2024
## version 2.3.0, released 8 Jul 2024

* (feature) font-size of alteri labels can be changed
* (feature) view option settings are presisted in local storage
* (usability) view options panel redesigned using checkboxes
* (bugfix) save anoynimized to JSON in the data structure for multiple maps
* (bugfix) anoynimize alteri list in export/print view
* (security) various updates of libraries

## version 2.2.0, released 30 Apr 2024
Expand Down Expand Up @@ -60,7 +61,7 @@
* (bugfix) provide favicon in a relative location
* (security) various updates of libraries

## version 2.0.1
## version 2.0.1, released 25 Apr 2022

* (feature) contacts outside outer horizon cannot be connected
* (security) various updates of libraries
Expand Down
18 changes: 13 additions & 5 deletions src/views/PdfView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@
<div id="egobar">
<p class="name">{{ t("ego") + ": " + ego.name }}</p>
<span v-if="versions.length && currentVersion >= 0">
<!-- TODO translate -->
Gedruckte Karte: {{ visibleNWKVersion?.title || "" }}
vom
{{
t("currentversion") +
(visibleNWKVersion?.title || "") +
t("versionfrom")
}}
<!-- TODO use internationalizable date formater -->
{{
visibleNWKVersion?.date?.substring(8, 10) +
Expand Down Expand Up @@ -61,7 +63,7 @@
v-bind:key="index"
class="panel-block"
>
<p class="name">{{ alter.name }}</p>
<p class="name">{{ getAlterName(alter) }}</p>
<p>{{ alter.role }}</p>
<p>
{{ alter.age.length >= 1 ? t("age") + ": " + alter.age : "" }}
Expand Down Expand Up @@ -99,7 +101,7 @@
</template>
<script lang="ts">
import NetworkMap from "@/components/NetworkMap.vue";
import { useStore } from "@/store";
import { store, useStore } from "@/store";
import { defineComponent, computed, onMounted } from "vue";
import { useRouter } from "vue-router";
import de from "@/de";
Expand Down Expand Up @@ -134,6 +136,12 @@ export default defineComponent({
return "";
}
},
getAlterName(alter: any) {
const pseudo = store.state.pseudonym.active; // oder wie pseudo gespeichert wird
return pseudo
? store.getters["pseudonym/pseudonize"](alter.id)
: alter.name;
},
},
name: "PdfView",
components: { NetworkMap },
Expand Down

0 comments on commit d735cd7

Please sign in to comment.