This commit is contained in:
2022-12-26 18:18:00 +00:00
parent bfe62da911
commit b75dcb7576
3 changed files with 12 additions and 12 deletions

View File

@@ -24,16 +24,16 @@
>
<v-card-text
><v-icon large class="mr-2">{{
getIconForAType(i.aType)
getIconForAType(i.sockType)
}}</v-icon
>{{ getNameForType(i.aType) }}
>{{ getNameForType(i.sockType) }}
<div v-if="i.textra" class="mt-4">{{ i.textra }}</div>
</v-card-text>
<v-card-actions>
<v-btn text @click="openHistoryOfItem(i)">{{
$sock.t("History")
}}</v-btn>
<v-btn v-if="canOpen(i.aType)" text @click="openItem(i)">{{
<v-btn v-if="canOpen(i.sockType)" text @click="openItem(i)">{{
$sock.t("Open")
}}</v-btn>
</v-card-actions>
@@ -58,9 +58,9 @@
>
<v-card-text
><v-icon large class="mr-2">{{
getIconForAType(i.aType)
getIconForAType(i.sockType)
}}</v-icon
>{{ getNameForType(i.aType) }}
>{{ getNameForType(i.sockType) }}
<div v-if="i.textra" class="mt-4">{{ i.textra }}</div>
</v-card-text>
@@ -146,7 +146,7 @@ export default {
});
} else {
window.$gz.eventBus.$emit("openobject", {
type: item.aType,
type: item.sockType,
id: item.objectId
});
}
@@ -162,7 +162,7 @@ export default {
} else {
this.$router.push({
name: "sock-history",
params: { socktype: item.aType, recordid: item.objectId }
params: { socktype: item.sockType, recordid: item.objectId }
});
}
},