This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user