pull/3019/head
Thomas Kaul 7 months ago committed by GitHub
parent 448cea0b69
commit e1371a8d2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -91,7 +91,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
private snackBar: MatSnackBar private snackBar: MatSnackBar
) {} ) {}
public ngOnInit(): void { public ngOnInit() {
const { benchmarks, currencies } = this.dataService.fetchInfo(); const { benchmarks, currencies } = this.dataService.fetchInfo();
this.benchmarks = benchmarks; this.benchmarks = benchmarks;
@ -167,7 +167,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
}); });
} }
public onClose(): void { public onClose() {
this.dialogRef.close(); this.dialogRef.close();
} }

@ -217,7 +217,7 @@ export class HeaderComponent implements OnChanges {
this.signOut.next(); this.signOut.next();
} }
public openLoginDialog(): void { public openLoginDialog() {
const dialogRef = this.dialog.open(LoginWithAccessTokenDialog, { const dialogRef = this.dialog.open(LoginWithAccessTokenDialog, {
autoFocus: false, autoFocus: false,
data: { data: {

@ -84,7 +84,7 @@ export class PositionDetailDialog implements OnDestroy, OnInit {
private userService: UserService private userService: UserService
) {} ) {}
public ngOnInit(): void { public ngOnInit() {
this.dataService this.dataService
.fetchPositionDetail({ .fetchPositionDetail({
dataSource: this.data.dataSource, dataSource: this.data.dataSource,
@ -267,7 +267,7 @@ export class PositionDetailDialog implements OnDestroy, OnInit {
}); });
} }
public onClose(): void { public onClose() {
this.dialogRef.close(); this.dialogRef.close();
} }

@ -100,7 +100,7 @@ export class UserAccountAccessComponent implements OnDestroy, OnInit {
this.unsubscribeSubject.complete(); this.unsubscribeSubject.complete();
} }
private openCreateAccessDialog(): void { private openCreateAccessDialog() {
const dialogRef = this.dialog.open(CreateOrUpdateAccessDialog, { const dialogRef = this.dialog.open(CreateOrUpdateAccessDialog, {
data: { data: {
access: { access: {

@ -169,7 +169,7 @@ export class AccountsPageComponent implements OnDestroy, OnInit {
isExcluded, isExcluded,
name, name,
platformId platformId
}: AccountModel): void { }: AccountModel) {
const dialogRef = this.dialog.open(CreateOrUpdateAccountDialog, { const dialogRef = this.dialog.open(CreateOrUpdateAccountDialog, {
data: { data: {
account: { account: {
@ -237,7 +237,7 @@ export class AccountsPageComponent implements OnDestroy, OnInit {
}); });
} }
private openCreateAccountDialog(): void { private openCreateAccountDialog() {
const dialogRef = this.dialog.open(CreateOrUpdateAccountDialog, { const dialogRef = this.dialog.open(CreateOrUpdateAccountDialog, {
data: { data: {
account: { account: {
@ -279,7 +279,7 @@ export class AccountsPageComponent implements OnDestroy, OnInit {
}); });
} }
private openTransferBalanceDialog(): void { private openTransferBalanceDialog() {
const dialogRef = this.dialog.open(TransferBalanceDialog, { const dialogRef = this.dialog.open(TransferBalanceDialog, {
data: { data: {
accounts: this.accounts accounts: this.accounts

@ -274,7 +274,7 @@ export class ActivitiesPageComponent implements OnDestroy, OnInit {
}); });
} }
public openUpdateActivityDialog(activity: Activity): void { public openUpdateActivityDialog(activity: Activity) {
const dialogRef = this.dialog.open(CreateOrUpdateActivityDialog, { const dialogRef = this.dialog.open(CreateOrUpdateActivityDialog, {
data: { data: {
activity, activity,
@ -311,7 +311,7 @@ export class ActivitiesPageComponent implements OnDestroy, OnInit {
this.unsubscribeSubject.complete(); this.unsubscribeSubject.complete();
} }
private openCreateActivityDialog(aActivity?: Activity): void { private openCreateActivityDialog(aActivity?: Activity) {
this.userService this.userService
.get() .get()
.pipe(takeUntil(this.unsubscribeSubject)) .pipe(takeUntil(this.unsubscribeSubject))

@ -150,7 +150,7 @@ export class ImportActivitiesDialog implements OnDestroy {
}: { }: {
files: FileList; files: FileList;
stepper: MatStepper; stepper: MatStepper;
}): void { }) {
if (files.length === 0) { if (files.length === 0) {
return; return;
} }

@ -79,7 +79,7 @@ export class RegisterPageComponent implements OnDestroy, OnInit {
accessToken: string, accessToken: string,
authToken: string, authToken: string,
role: Role role: Role
): void { ) {
const dialogRef = this.dialog.open(ShowAccessTokenDialog, { const dialogRef = this.dialog.open(ShowAccessTokenDialog, {
data: { data: {
accessToken, accessToken,

@ -18,7 +18,7 @@ export class SettingsStorageService {
window.localStorage.setItem(aKey, aValue); window.localStorage.setItem(aKey, aValue);
} }
public removeSetting(aKey: string): void { public removeSetting(aKey: string) {
return window.localStorage.removeItem(aKey); return window.localStorage.removeItem(aKey);
} }
} }

@ -21,14 +21,14 @@ export class TokenStorageService {
); );
} }
public saveToken(token: string, staySignedIn = false): void { public saveToken(token: string, staySignedIn = false) {
if (staySignedIn) { if (staySignedIn) {
window.localStorage.setItem(KEY_TOKEN, token); window.localStorage.setItem(KEY_TOKEN, token);
} }
window.sessionStorage.setItem(KEY_TOKEN, token); window.sessionStorage.setItem(KEY_TOKEN, token);
} }
public signOut(): void { public signOut() {
const utmSource = window.localStorage.getItem('utm_source'); const utmSource = window.localStorage.getItem('utm_source');
if (this.webAuthnService.isEnabled()) { if (this.webAuthnService.isEnabled()) {

@ -72,7 +72,7 @@ export class ActivitiesFilterComponent implements OnChanges, OnDestroy {
} }
} }
public onAddFilter({ input, value }: MatChipInputEvent): void { public onAddFilter({ input, value }: MatChipInputEvent) {
if (value?.trim()) { if (value?.trim()) {
this.updateFilters(); this.updateFilters();
} }
@ -85,7 +85,7 @@ export class ActivitiesFilterComponent implements OnChanges, OnDestroy {
this.searchControl.setValue(undefined); this.searchControl.setValue(undefined);
} }
public onRemoveFilter(aFilter: Filter): void { public onRemoveFilter(aFilter: Filter) {
this.selectedFilters = this.selectedFilters.filter((filter) => { this.selectedFilters = this.selectedFilters.filter((filter) => {
return filter.id !== aFilter.id; return filter.id !== aFilter.id;
}); });
@ -93,7 +93,7 @@ export class ActivitiesFilterComponent implements OnChanges, OnDestroy {
this.updateFilters(); this.updateFilters();
} }
public onSelectFilter(event: MatAutocompleteSelectedEvent): void { public onSelectFilter(event: MatAutocompleteSelectedEvent) {
this.selectedFilters.push( this.selectedFilters.push(
this.allFilters.find((filter) => { this.allFilters.find((filter) => {
return filter.id === event.option.value; return filter.id === event.option.value;

@ -216,7 +216,7 @@ export class ActivitiesTableComponent
alert(aComment); alert(aComment);
} }
public onOpenPositionDialog({ dataSource, symbol }: UniqueAsset): void { public onOpenPositionDialog({ dataSource, symbol }: UniqueAsset) {
this.router.navigate([], { this.router.navigate([], {
queryParams: { dataSource, symbol, positionDetailDialog: true } queryParams: { dataSource, symbol, positionDetailDialog: true }
}); });

@ -10,7 +10,7 @@ export class CarouselItem implements FocusableOption {
public constructor(readonly element: ElementRef<HTMLElement>) {} public constructor(readonly element: ElementRef<HTMLElement>) {}
public focus(): void { public focus() {
this.element.nativeElement.focus({ preventScroll: true }); this.element.nativeElement.focus({ preventScroll: true });
} }
} }

@ -134,31 +134,31 @@ export abstract class AbstractMatFormField<T>
return this.focused || !this.empty; return this.focused || !this.empty;
} }
public ngDoCheck(): void { public ngDoCheck() {
if (this.ngControl) { if (this.ngControl) {
this.errorState = this.ngControl.invalid && this.ngControl.touched; this.errorState = this.ngControl.invalid && this.ngControl.touched;
this.stateChanges.next(); this.stateChanges.next();
} }
} }
public ngOnDestroy(): void { public ngOnDestroy() {
this.stateChanges.complete(); this.stateChanges.complete();
this._focusMonitor.stopMonitoring(this._elementRef.nativeElement); this._focusMonitor.stopMonitoring(this._elementRef.nativeElement);
} }
public registerOnChange(fn: (_: T) => void): void { public registerOnChange(fn: (_: T) => void) {
this.onChange = fn; this.onChange = fn;
} }
public registerOnTouched(fn: () => void): void { public registerOnTouched(fn: () => void) {
this.onTouched = fn; this.onTouched = fn;
} }
public setDescribedByIds(ids: string[]): void { public setDescribedByIds(ids: string[]) {
this.describedBy = ids.join(' '); this.describedBy = ids.join(' ');
} }
public writeValue(value: T): void { public writeValue(value: T) {
this.value = value; this.value = value;
} }
@ -173,7 +173,7 @@ export abstract class AbstractMatFormField<T>
this.stateChanges.next(); this.stateChanges.next();
} }
public onContainerClick(): void { public onContainerClick() {
if (!this.focused) { if (!this.focused) {
this.focus(); this.focus();
} }

Loading…
Cancel
Save