Skip to content

Commit

Permalink
Fix cancel button
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanslatten committed Dec 18, 2024
1 parent 191d235 commit e911042
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ <h1>ArcGIS Configuration</h1>
</div>
</mat-card-content>
<mat-card-actions>
<button mat-button matDialogClose (click)="cancelEdit()">CANCEL</button>
<button mat-flat-button color="primary" matDialogClose (click)="saveEdit()">SAVE</button>
<button mat-button matDialogClose (click)="cancelEdit()">CANCEL</button>
</mat-card-actions>
</mat-card>
<arc-layer [config]="config" (configChanged)="configChanged($event)"></arc-layer>
Expand Down Expand Up @@ -798,8 +798,8 @@ <h2 matDialogTitle>Attributes Configuration</h2>
</div>
</mat-dialog-content>
<mat-dialog-actions align="end">
<button mat-button matDialogClose (click)="cancelEdit()">CANCEL</button>
<button mat-flat-button color="primary" matDialogClose (click)="saveEdit()">SAVE</button>
<button mat-button matDialogClose (click)="cancelEdit()">CANCEL</button>
</mat-dialog-actions>
</ng-template>
<ng-template #deleteFieldDialog let-data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ export class ArcAdminComponent implements OnInit {

cancelEdit() {
console.log('Canceled configuration edit')
this.editConfig = this.copyConfig();
}

keys(value: any): string[] {
Expand Down

0 comments on commit e911042

Please sign in to comment.