Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
Signed-off-by: simvalery <[email protected]>
  • Loading branch information
simvalery committed May 23, 2023
1 parent 92fd2d3 commit b66e5d1
Show file tree
Hide file tree
Showing 10 changed files with 174 additions and 485 deletions.
Empty file.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ import { NewPolicyDialog } from './helpers/new-policy-dialog/new-policy-dialog.c
import { PolicySettingsComponent } from './policy-configuration/policy-settings/policy-settings.component';
import { ImportFileDialog } from './helpers/import-file-dialog/import-file-dialog.component';
import { NewThemeDialog } from './helpers/new-theme-dialog/new-theme-dialog.component';
import { UploadConfigComponent } from './policy-configuration/blocks/documents/upload-config/upload-config.component';
import { UploadDocumentBlockComponent } from './policy-viewer/blocks/upload-document-block/upload-document-block.component';

@NgModule({
Expand All @@ -107,7 +106,6 @@ import { UploadDocumentBlockComponent } from './policy-viewer/blocks/upload-docu
ActionConfigComponent,
ContainerConfigComponent,
RequestConfigComponent,
UploadConfigComponent,
PolicyPropertiesComponent,
MintConfigComponent,
SendConfigComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,10 @@
margin: auto;
width: 600px;
}

.page-header {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@
</div>
<ng-container *ngIf="type=='page'">
<div class="upload-area">
<div class="page-header">
<h1 *ngIf="pageTitle" mat-dialog-title>{{pageTitle}}</h1>
<div *ngIf="pageDescription" class="description">{{pageDescription}}</div>
</div>
<app-file-drag-n-drop fileExtension="json" [dropZoneLabel]="uploadText()" (onFileLoaded)="onDrop($event)" [multiple]="true"></app-file-drag-n-drop>
<button *ngIf="items.length > 0" style="top: 10px;" class="registrant-application-create-btn" mat-raised-button color="primary" type="submit" (click)="onSubmit($event)">Send</button>
</div>
</ng-container>
<ng-container *ngIf="type=='dialog'">
<button mat-raised-button color="primary" class="btn-block-{{buttonClass}}"
(click)="onDialog()">{{content}}</button>
(click)="onDialog()">{{buttonText}}</button>
</ng-container>
</div>

<ng-template #dialogTemplate let-data>
<div>
<h1 mat-dialog-title class="title">{{data.dialogContent}}</h1>
<h1 mat-dialog-title class="title">{{data.dialogTitle}}</h1>
<div class="description">
{{description}}
{{dialogDescription}}
</div>
<div *ngIf="data.schema" mat-dialog-content class="body-dialog-template">
<div *ngIf="dialogLoading || disabled" class="loading-dialog">
Expand Down
Loading

0 comments on commit b66e5d1

Please sign in to comment.