mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(editor): Fix most ts errors in credential components (no-changelog) (#9576)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user