LP#1967328 Add multiple new permission group mappings at once
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / staff / admin / server / perm-group-tree.component.ts
index 9e6438c..1b45e21 100644 (file)
@@ -363,8 +363,12 @@ export class PermGroupTreeComponent implements OnInit {
     openAddDialog() {
         this.addMappingDialog.open().subscribe(
             modified => {
-                this.createMapString.current().then(msg => this.toast.success(msg));
-                this.loadPermMaps();
+                if (modified) {
+                    this.createMapString.current().then(msg => this.toast.success(msg));
+                    this.loadPermMaps();
+                } else {
+                    this.errorMapString.current().then(msg => this.toast.danger(msg));
+                }
             }
         );
     }