Skip to content

Commit

Permalink
pdf export erstellt #47; lint angewendet
Browse files Browse the repository at this point in the history
  • Loading branch information
julia221501 committed Sep 1, 2022
1 parent dd63fce commit 2f45e49
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
23 changes: 11 additions & 12 deletions src/components/PrintDetails.vue
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<template>
<div
class="panel-block"
v-bind:class="{
class="panel-block"
v-bind:class="{
selected: isSelected,
alteriform: isEditMode,
clickAble: !isEditMode,
}"
v-on:click="toggleSelection()"
v-on:click="toggleSelection()"
>
<span v-if="!isEditMode" class="contact"
>{{ displayName }}
>{{ displayName }}
<span v-if="alter.age">/ {{ alter.age + " " }} </span>
<span :class="{ autovalue: alter.roleDefault }"
>/ {{ alter.role }}</span
>/ {{ alter.role }}</span
></span
>
</div>
</template>

<script>
export default {
name: "PrintDetails"
}
name: "PrintDetails",
};
</script>

<script lang="ts">
Expand All @@ -48,7 +48,6 @@ export default defineComponent({
setup(props) {
const store = useStore();
return {
editConnections: () => {
store.commit("view/openAlterForm", {
Expand All @@ -57,18 +56,18 @@ export default defineComponent({
});
},
isSelected: computed(() =>
store.getters["view/isSelected"](props.alter.id)
store.getters["view/isSelected"](props.alter.id)
),
isConnectionDisabled: computed(
() => !isConnectable(props.alter as Alter)
() => !isConnectable(props.alter as Alter)
),
isEditMode,
isAlterOpsAllowed: computed(() => store.getters.editedAlterValid),
isBaseForm: computed(
() => isEditMode.value && store.state.view.editTab === TAB_BASE
() => isEditMode.value && store.state.view.editTab === TAB_BASE
),
isConnectionForm: computed(
() => isEditMode.value && store.state.view.editTab === TAB_CONNECTIONS
() => isEditMode.value && store.state.view.editTab === TAB_CONNECTIONS
),
};
},
Expand Down
1 change: 0 additions & 1 deletion src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
import Home from "../views/Home.vue";
import Pdf from "../views/Pdf.vue";


const routes: Array<RouteRecordRaw> = [
{
path: "/",
Expand Down

0 comments on commit 2f45e49

Please sign in to comment.