-
+ @if (template) {
+
+
+ Link
+
+
+
+
+ } @else {
+
+ }
-
+ @if (template) {
+
+ } @else {
+
+ }
diff --git a/src/components/create-invoice-template-dialog/create-invoice-template-dialog.component.ts b/src/components/create-invoice-template-dialog/create-invoice-template-dialog.component.ts
index e203d45b8..f57e39c39 100644
--- a/src/components/create-invoice-template-dialog/create-invoice-template-dialog.component.ts
+++ b/src/components/create-invoice-template-dialog/create-invoice-template-dialog.component.ts
@@ -1,39 +1,89 @@
+import { Subject, catchError, combineLatest, map, of, shareReplay, switchMap, tap } from 'rxjs';
+
+import { Clipboard } from '@angular/cdk/clipboard';
+import { CommonModule } from '@angular/common';
import { Component, DestroyRef, inject, signal } from '@angular/core';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { FormControl, ReactiveFormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatIconModule } from '@angular/material/icon';
+import { MatInputModule } from '@angular/material/input';
import { InvoiceTemplateCreateParams } from '@vality/domain-proto/api_extensions';
import { DialogModule, DialogSuperclass, NotifyLogService, progressTo } from '@vality/matez';
import { ThriftInvoiceTemplatingService } from '~/api/services';
+import { ConfigService } from '~/services';
import { DomainThriftFormComponent } from '../thrift-api-crud';
@Component({
templateUrl: './create-invoice-template-dialog.component.html',
- imports: [DialogModule, DomainThriftFormComponent, ReactiveFormsModule, MatButtonModule],
+ imports: [
+ CommonModule,
+ DialogModule,
+ DomainThriftFormComponent,
+ ReactiveFormsModule,
+ MatButtonModule,
+ MatFormFieldModule,
+ MatInputModule,
+ MatIconModule,
+ ],
})
export class CreateInvoiceTemplateDialogComponent extends DialogSuperclass