From 6e3068dd603cd4d945678cc6d2cae18bb0ee3e31 Mon Sep 17 00:00:00 2001 From: akshayitzme Date: Sat, 1 Jul 2023 14:17:06 +0530 Subject: [PATCH] chore: fix linting --- src/components/Controls/DynamicLink.vue | 4 ++-- src/components/StatusPill.vue | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Controls/DynamicLink.vue b/src/components/Controls/DynamicLink.vue index 8ad987263..d9a4eb827 100644 --- a/src/components/Controls/DynamicLink.vue +++ b/src/components/Controls/DynamicLink.vue @@ -75,8 +75,8 @@ export default { }, async openNewDoc() { const schemaName = this.getTargetSchemaName(); - if(!schemaName){ - return + if (!schemaName) { + return; } const name = this.linkValue || fyo.doc.getTemporaryName(fyo.schemaMap[schemaName]); diff --git a/src/components/StatusPill.vue b/src/components/StatusPill.vue index 70ada61be..f2db73078 100644 --- a/src/components/StatusPill.vue +++ b/src/components/StatusPill.vue @@ -44,7 +44,7 @@ export default defineComponent({ Saved: this.t`Saved`, Submitted: this.t`Submitted`, Return: this.t`Return`, - ReturnIssued: this.t`Return Issued` + ReturnIssued: this.t`Return Issued`, }[this.status]; }, color(): UIColors { @@ -64,7 +64,7 @@ const statusColorMap: Record = { Saved: 'blue', Submitted: 'blue', Return: 'orange', - ReturnIssued: 'gray' + ReturnIssued: 'gray', }; function getStatus(doc: Doc) { @@ -113,12 +113,12 @@ function getSubmittableStatus(doc: Doc) { return 'Paid'; } - if(doc.isReturn && doc.isSubmitted && !doc.isCancelled){ - return 'Return' + if (doc.isReturn && doc.isSubmitted && !doc.isCancelled) { + return 'Return'; } - if(doc.isItemsReturned && doc.isSubmitted && !doc.isCancelled){ - return 'ReturnIssued' + if (doc.isItemsReturned && doc.isSubmitted && !doc.isCancelled) { + return 'ReturnIssued'; } if (doc.isSubmitted) {