Correcting preview link
This commit is contained in:
@@ -97,7 +97,7 @@ export class DraftsNewComponent extends BaseDraftsComponent implements OnInit {
|
|||||||
(resourceReceived)="this.onResourceReceived($event)"
|
(resourceReceived)="this.onResourceReceived($event)"
|
||||||
>
|
>
|
||||||
</base-card>
|
</base-card>
|
||||||
<a class="btn btn-link" href="http://localhost/api/v1/contract/print/preview/draft/{{this.resource_id}}" target="_blank">Preview</a>
|
<a class="btn btn-link" href="/api/v1/contract/print/preview/draft/{{this.resource_id}}" target="_blank">Preview</a>
|
||||||
<ng-container *ngIf="this.isReadyForPublication;">
|
<ng-container *ngIf="this.isReadyForPublication;">
|
||||||
<formly-form [fields]="newContractFormfields" [form]="newContractForm" [model]="newContractModel"></formly-form>
|
<formly-form [fields]="newContractFormfields" [form]="newContractForm" [model]="newContractModel"></formly-form>
|
||||||
<button class="btn btn-success" (click)="publish()">Publish</button>
|
<button class="btn btn-success" (click)="publish()">Publish</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user