Skip to content

Commit

Permalink
removed unsed codelines
Browse files Browse the repository at this point in the history
  • Loading branch information
suvarnakale committed Oct 10, 2023
1 parent a40dc7c commit 9c8f9b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion src/app/admin/edit-template/edit-template.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h3 class="heading-5">{{'SAVE_DOCUMENT' | translate}}</h3>
</div>
<div class="container mt-4">
<div class="mb-4">
<p class="heading-4 font-700 mb-05">{{'NAME' | translate}} </p>
<p class="heading-4 font-700 mb-05">{{'NAME' | translate}}</p>
<input [(ngModel)]="templateName" class="w-100 input-field fs-14 p-3 inputField"
placeholder="Enter Document name" type="text" />
</div>
Expand Down
7 changes: 0 additions & 7 deletions src/app/admin/edit-template/edit-template.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import 'grapesjs-preset-webpage';
import { JsonEditorComponent, JsonEditorOptions } from 'ang-jsoneditor';
import { ToastMessageService } from 'src/app/services/toast-message/toast-message.service';
import { SchemaService } from '../../services/data/schema.service';
import { HttpHeaders } from '@angular/common/http';

@Component({
selector: 'app-edit-template',
Expand Down Expand Up @@ -502,8 +501,6 @@ export class EditTemplateComponent implements OnInit, OnDestroy {
this.schemaContent = data;

var htmlWithCss = this.editor.runCommand('gjs-get-inlined-html');


var parser = new DOMParser();
var htmlDoc = parser.parseFromString(htmlWithCss, 'text/html');
this.userHtml = htmlDoc.documentElement.innerHTML;
Expand All @@ -522,10 +519,6 @@ export class EditTemplateComponent implements OnInit, OnDestroy {
delete this.schemaContent._osConfig['certificateTemplates'][this.oldTemplateName];
this.schemaContent._osConfig['certificateTemplates'][this.templateName] = 'minio://' + this.certificateData;
}


console.log(this.schemaContent)

let result = this.schemaContent;
let payload = {
"schema": JSON.stringify(result)
Expand Down

0 comments on commit 9c8f9b9

Please sign in to comment.