LP1823041 Angular dialogs return observables
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / share / translate / translate.component.html
index 7aa59b4..61b9cb4 100644 (file)
@@ -4,8 +4,7 @@
       {{idlClassDef.label}}
     </h4>
     <button type="button" class="close" 
-      i18n-aria-label aria-label="Close" 
-      (click)="dismiss('cross_click')">
+      i18n-aria-label aria-label="Close" (click)="close()">
       <span aria-hidden="true">&times;</span>
     </button>
   </div>
@@ -58,6 +57,6 @@
     <button *ngIf="nextString" (click)="nextString()" 
       class="btn btn-info mr-3" i18n>Next String</button>
     <button (click)="translate()" class="btn btn-info" i18n>Apply</button>
-    <button (click)="dismiss('canceled')" class="btn btn-warning ml-2" i18n>Cancel</button>
+    <button (click)="close()" class="btn btn-warning ml-2" i18n>Cancel</button>
   </div>
 </ng-template>