This commit is contained in:
2020-04-11 20:12:27 +00:00
parent 4575306256
commit ebb779a97a

View File

@@ -33,7 +33,9 @@
</v-card-text>
<v-card-actions>
<v-btn text>{{ $ay.t("History") }}</v-btn>
<v-btn text @click="openHistoryOfItem(i)">{{
$ay.t("History")
}}</v-btn>
<v-btn v-if="canOpen(i.objectType)" text @click="openItem(i)">{{
$ay.t("Open")
}}</v-btn>
@@ -107,6 +109,12 @@ export default {
id: item.objectId
});
},
openHistoryOfItem(item) {
this.$router.push({
name: "ay-history",
params: { ayatype: item.objectType, recordid: item.objectId }
});
},
canOpen(otype) {
return this.ayaTypes[otype].canopen;
},