fix(editor): Fix most ts errors in credential components (no-changelog) (#9576)

This commit is contained in:
Tomi Turtiainen
2024-06-03 11:28:41 +03:00
committed by GitHub
parent 379e2da547
commit 0e10c84efd
6 changed files with 51 additions and 51 deletions

View File

@@ -70,7 +70,6 @@ export default defineComponent({
updatedAt: '',
type: '',
name: '',
nodesAccess: [],
sharedWithProjects: [],
homeProject: {} as ProjectSharingData,
}),
@@ -118,7 +117,7 @@ export default defineComponent({
);
},
formattedCreatedAtDate(): string {
const currentYear = new Date().getFullYear();
const currentYear = new Date().getFullYear().toString();
return dateformat(
this.data.createdAt,
@@ -128,10 +127,9 @@ export default defineComponent({
},
methods: {
async onClick(event: Event) {
if (
this.$refs.cardActions === event.target ||
this.$refs.cardActions?.contains(event.target)
) {
const cardActionsEl = this.$refs.cardActions as HTMLDivElement | undefined;
const clickTarget = event.target as HTMLElement | null;
if (cardActionsEl === clickTarget || (clickTarget && cardActionsEl?.contains(clickTarget))) {
return;
}