Browse Source

Improvements to role form.

pull/511/head
Sebastian 6 years ago
parent
commit
f133152d98
  1. 2
      frontend/app/features/settings/pages/roles/role.component.ts
  2. 2
      frontend/app/framework/angular/forms/editors/autocomplete.component.ts

2
frontend/app/features/settings/pages/roles/role.component.ts

@ -93,7 +93,7 @@ export class RoleComponent implements OnChanges {
if (value) { if (value) {
this.rolesState.update(this.role, value) this.rolesState.update(this.role, value)
.subscribe(() => { .subscribe(() => {
this.editForm.submitCompleted(); this.editForm.submitCompleted({ noReset: true });
this.toggleEditing(); this.toggleEditing();
}, error => { }, error => {

2
frontend/app/framework/angular/forms/editors/autocomplete.component.ts

@ -66,7 +66,7 @@ export class AutocompleteComponent extends StatefulControlComponent<State, Reado
public displayProperty: string; public displayProperty: string;
@Input() @Input()
public placeholder: string; public placeholder = '';
@Input() @Input()
public icon: string; public icon: string;

Loading…
Cancel
Save