This commit is contained in:
@@ -33,7 +33,9 @@
|
|||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
|
||||||
<v-card-actions>
|
<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)">{{
|
<v-btn v-if="canOpen(i.objectType)" text @click="openItem(i)">{{
|
||||||
$ay.t("Open")
|
$ay.t("Open")
|
||||||
}}</v-btn>
|
}}</v-btn>
|
||||||
@@ -107,6 +109,12 @@ export default {
|
|||||||
id: item.objectId
|
id: item.objectId
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
openHistoryOfItem(item) {
|
||||||
|
this.$router.push({
|
||||||
|
name: "ay-history",
|
||||||
|
params: { ayatype: item.objectType, recordid: item.objectId }
|
||||||
|
});
|
||||||
|
},
|
||||||
canOpen(otype) {
|
canOpen(otype) {
|
||||||
return this.ayaTypes[otype].canopen;
|
return this.ayaTypes[otype].canopen;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user