Skip to content
Snippets Groups Projects
Commit 82559618 authored by OZGCloud's avatar OZGCloud
Browse files

fix some sonarqube issues

parent 3597169f
Branches
Tags
No related merge requests found
......@@ -107,7 +107,7 @@ export class ForwardingService implements OnDestroy {
createMarkAsCommand(forward: ForwardingResource, linkRel: string, command: CreateCommand): Observable<StateResource<CommandResource>> {
return this.commandService.createCommand(forward, linkRel, command).pipe(
startWith(<StateResource<CommandResource>>createEmptyStateResource(true))
startWith(createEmptyStateResource<CommandResource>(true))
);
}
......
......@@ -40,7 +40,7 @@ export abstract class AbstractFormService {
doAfterPatch(source: any): void {
//No Implementation here for abstract class
};
}
setError(apiError: ApiError): void {
apiError.issues.forEach(issue => setValidationError(this.form, issue, this.getPathPrefix()))
......
import { Component, Input } from '@angular/core';
import { Observable } from 'rxjs';
@Component({
selector: 'goofy-client-empty-list',
......
......@@ -2,7 +2,6 @@ import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
import { StateResource } from '@goofy-client/tech-shared';
import { VorgangListResource, VorgangResource } from '@goofy-client/vorgang-shared';
import { Observable } from 'rxjs';
@Component({
selector: 'goofy-client-vorgang-list',
......
......@@ -194,7 +194,7 @@ export class WiedervorlageService implements OnDestroy {
proceedAfterReceiveCommand(commandStateResource: StateResource<CommandResource>, message: string): void {
this.submitInProgress$.next({ ...this.submitInProgress$.value, resource: commandStateResource.resource });
if (isDone(<CommandResource>commandStateResource.resource)) {
if (isDone(commandStateResource.resource)) {
this.submitInProgress$.next(createStateResource(commandStateResource.resource));
this.snackbarService.showSnackbar(commandStateResource.resource, message)
this.setWiedervorlageListReload();
......
......@@ -14,8 +14,6 @@ export class BreadcrumbComponent implements OnChanges {
betreff: string;
constructor() { }
ngOnChanges(changes: SimpleChanges) {
if (changes.wiedervorlage) {
this.betreff = this.wiedervorlage ? this.wiedervorlage.betreff : WiedervorlageMessages.NEW;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment