1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-11-24 08:42:24 +02:00

fixing settings bugs

This commit is contained in:
Patrik J. Braun 2019-07-21 10:52:34 +02:00
parent 1855a7da15
commit 503f96a9b3
2 changed files with 4 additions and 2 deletions

View File

@ -99,7 +99,9 @@ export class IndexingSettingsComponent extends SettingsComponent<IndexingConfig,
}
});
this.updateProgress();
this.statistic = await this._settingsService.getStatistic();
if (this._settingsService.isSupported()) {
this.statistic = await this._settingsService.getStatistic();
}
}
ngOnDestroy() {

View File

@ -77,7 +77,7 @@
<input type="text" class="form-control" i18n-placeholder placeholder="Username"
[(ngModel)]="newUser.name" name="name" required>
<input type="password" class="form-control" i18n-placeholder placeholder="Password"
[(ngModel)]="newUser.password" name="password" required>
[(ngModel)]="newUser.password" name="password" autocomplete="off" required>
<select class="form-control" [(ngModel)]="newUser.role" name="role" required>
<option *ngFor="let repository of userRoles" [value]="repository.key">{{repository.value}}
</option>