Skip to content

Commit

Permalink
Fix reload loop bug on shared folder ACL page.
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Theile <votdev@gmx.de>
  • Loading branch information
votdev committed Jan 19, 2023
1 parent 7f286e6 commit bd4f957
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions deb/openmediavault/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
openmediavault (6.1.7-1) stable; urgency=low

* Fix reload loop bug on shared folder ACL page.
* Issue #1310: Store UI settings on the server as well instead
of the browser only. Note, existing settings in the browser
are not adopted. Thanks to jpspringall for his contribution.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { marker as gettext } from '@ngneat/transloco-keys-manager/marker';
import * as _ from 'lodash';
import { BlockUI, NgBlockUI } from 'ng-block-ui';
import { EMPTY } from 'rxjs';
import { catchError, finalize } from 'rxjs/operators';
import { catchError, distinctUntilChanged, finalize } from 'rxjs/operators';

import {
FormPageButtonConfig,
Expand Down Expand Up @@ -295,7 +295,7 @@ export class SharedFolderAclFormPageComponent extends BaseFormPageComponent impl
self.loadData = () => this.loadData('/');
self.afterViewInitEvent.subscribe(() => {
const control = self.form.formGroup.get('file');
control.valueChanges.subscribe((value) => this.loadData(value));
control.valueChanges.pipe(distinctUntilChanged()).subscribe((value) => this.loadData(value));
});
}

Expand Down

0 comments on commit bd4f957

Please sign in to comment.