This commit is contained in:
2020-04-24 21:39:46 +00:00
parent 4dc4e4e982
commit 8e35815456

View File

@@ -6,9 +6,17 @@
@drop.prevent="onDrop" @drop.prevent="onDrop"
@dragover.prevent @dragover.prevent
> >
<span class="v-label v-label--active theme--light"> <div>
<v-btn depressed tile @click="revealedClicked">
{{ $ay.t("Attachments")
}}<v-icon v-text="reveal ? 'fa-eye-slash' : 'fa-eye'" right></v-icon
></v-btn>
</div>
<template v-if="reveal">
<!-- <span class="v-label v-label--active theme--light">
{{ $ay.t("Attachments") }} {{ $ay.t("Attachments") }}
</span> </span> -->
<template v-if="readonly"> <template v-if="readonly">
<!-- Note: this is just a copy of the inner part of read/write version below <!-- Note: this is just a copy of the inner part of read/write version below
with the action taken out --> with the action taken out -->
@@ -29,7 +37,9 @@
<v-list-item-subtitle v-text="item.date"></v-list-item-subtitle> <v-list-item-subtitle v-text="item.date"></v-list-item-subtitle>
<v-list-item-subtitle v-text="item.notes"></v-list-item-subtitle> <v-list-item-subtitle
v-text="item.notes"
></v-list-item-subtitle>
</v-list-item-content> </v-list-item-content>
</v-list-item> </v-list-item>
</v-list> </v-list>
@@ -121,7 +131,9 @@
{{ $ay.t("Delete") }} {{ $ay.t("Delete") }}
</v-btn> </v-btn>
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-btn text @click="editMenu = false">{{ $ay.t("Cancel") }}</v-btn> <v-btn text @click="editMenu = false">{{
$ay.t("Cancel")
}}</v-btn>
<v-btn color="primary" text @click="saveEdit">{{ <v-btn color="primary" text @click="saveEdit">{{
$ay.t("OK") $ay.t("OK")
}}</v-btn> }}</v-btn>
@@ -129,15 +141,14 @@
</v-card> </v-card>
</v-menu> </v-menu>
</template> </template>
</template>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
created() {
this.getList();
},
data() { data() {
return { return {
reveal: false,
height: 300, height: 300,
displayList: [], displayList: [],
notes: null, notes: null,
@@ -158,6 +169,12 @@ export default {
}, },
computed: {}, computed: {},
methods: { methods: {
revealedClicked() {
this.reveal = !this.reveal;
if (this.reveal) {
this.getList();
}
},
onResize() { onResize() {
this.height = window.innerHeight * 0.8; this.height = window.innerHeight * 0.8;
}, },