diff --git a/eslint.config.mjs b/eslint.config.mjs
index 50baa97..cc0359a 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -15,7 +15,6 @@ export default [
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
- '@typescript-eslint/no-extraneous-class': 'off',
'@typescript-eslint/no-confusing-non-null-assertion': 'off',
'@typescript-eslint/no-empty-function': 'off'
}
diff --git a/functions/src/generator/lib/template_devfest/proforma_invoice_fr.ts b/functions/src/generator/lib/template_devfest/proforma_invoice_fr.ts
index d1dbada..a5b3efa 100644
--- a/functions/src/generator/lib/template_devfest/proforma_invoice_fr.ts
+++ b/functions/src/generator/lib/template_devfest/proforma_invoice_fr.ts
@@ -67,7 +67,7 @@ Facture arrêtée à la somme de <%= SPONSORING_NUMBER %>€ TTC.
TVA non applicable, article 261 du Code général des impôts.
-Paiement par virement (RIB : 30027 17015 00020671801 21, IBAN FR7630027170150002067180121, BIC CMCIFRPP) à réception de cette facture.
+Paiement par virement (IBAN FR76 1695 8000 0172 9071 8946 558, BIC QNTOFRP1XXX) à réception de cette facture.
Relancer ces partenaires
}
+
+ Il y a {{ filteredPartners().length }} partenaires dans cette liste
+
+
Date Enregistrement
diff --git a/public/src/app/ui/admin-paid/admin-paid.component.html b/public/src/app/ui/admin-paid/admin-paid.component.html
index 49e6acb..6c2349b 100644
--- a/public/src/app/ui/admin-paid/admin-paid.component.html
+++ b/public/src/app/ui/admin-paid/admin-paid.component.html
@@ -1,7 +1,7 @@
-@if (company().invoiceUrl) {
+@if (companySignal().invoiceUrl) {
}
-@if (company().status?.[step().key] !== 'done') {
+@if (companySignal().status?.[stepSignal().key] !== 'done') {
done
diff --git a/public/src/app/ui/admin-paid/admin-paid.component.ts b/public/src/app/ui/admin-paid/admin-paid.component.ts
index e2ccf61..93afb1b 100644
--- a/public/src/app/ui/admin-paid/admin-paid.component.ts
+++ b/public/src/app/ui/admin-paid/admin-paid.component.ts
@@ -1,5 +1,5 @@
import { CommonModule } from '@angular/common';
-import { Component, inject, input } from '@angular/core';
+import { Component, computed, inject, input } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
@@ -21,11 +21,15 @@ export class AdminPaidComponent {
readonly id = input.required();
files = {};
+ idSignal = computed(() => this.id as unknown as string);
+ stepSignal = computed(() => this.step as unknown as WorkflowStep);
+ companySignal = computed(() => this.company as unknown as Company);
+
private readonly partnerService = inject(PartnerService);
private readonly storageService = inject(StorageService);
ngOnInit() {
- this.storageService.getInvoice(this.id()).then((invoice) => {
+ this.storageService.getInvoice(this.idSignal()).then((invoice) => {
this.files = {
Facture: invoice
};
@@ -33,10 +37,10 @@ export class AdminPaidComponent {
}
updateStatus(status: State) {
- this.partnerService.update(this.id(), {
+ this.partnerService.update(this.idSignal(), {
status: {
- ...this.company().status,
- [this.step().key]: status
+ ...this.companySignal().status,
+ [this.stepSignal().key]: status
}
});
}
@@ -47,8 +51,8 @@ export class AdminPaidComponent {
this.updateStatus('done');
}
uploadInvoice(file: Blob) {
- this.storageService.uploadInvoice(this.id(), file).then((url) => {
- this.partnerService.update(this.id(), {
+ this.storageService.uploadInvoice(this.idSignal(), file).then((url) => {
+ this.partnerService.update(this.idSignal(), {
invoiceUrl: url
});
});
diff --git a/public/src/app/ui/filled/filled.component.ts b/public/src/app/ui/filled/filled.component.ts
index aa5fa0f..ff942f7 100644
--- a/public/src/app/ui/filled/filled.component.ts
+++ b/public/src/app/ui/filled/filled.component.ts
@@ -3,8 +3,7 @@ import { Component } from '@angular/core';
@Component({
selector: 'cms-filled',
imports: [],
- template: ` {{ message }}
`
+ template: ` Nous avons bien pris en compte votre souhait de devenir partenaire et nous vous en remercions.
`
})
-export class FilledComponent {
- message = 'Nous avons bien pris en compte votre souhait de devenir partenaire et nous vous en remercions.';
-}
+// eslint-disable-next-line @typescript-eslint/no-extraneous-class
+export class FilledComponent {}
diff --git a/public/src/app/ui/loader/loader.component.ts b/public/src/app/ui/loader/loader.component.ts
index ab1a2d6..4fdfe91 100644
--- a/public/src/app/ui/loader/loader.component.ts
+++ b/public/src/app/ui/loader/loader.component.ts
@@ -7,4 +7,5 @@ import { Component } from '@angular/core';
templateUrl: './loader.component.html',
styleUrls: ['./loader.component.css']
})
+// eslint-disable-next-line @typescript-eslint/no-extraneous-class
export class LoaderComponent {}
diff --git a/public/src/app/ui/signed/signed.component.ts b/public/src/app/ui/signed/signed.component.ts
index 8daa0aa..810afa0 100644
--- a/public/src/app/ui/signed/signed.component.ts
+++ b/public/src/app/ui/signed/signed.component.ts
@@ -54,7 +54,7 @@ export class SignedComponent {
this.partnerService.update(this.id as unknown as string, {
status: {
...this.companySignal().status,
- [this.step().key]: status
+ [this.stepSignal().key]: status
}
});
}