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

OZG-5009 use dummy bescheid draft resource

parent 5effc8b8
Branches
Tags
No related merge requests found
import { CommandResource } from '@alfa-client/command-shared';
import { StateResource } from '@alfa-client/tech-shared';
import { createStateResource, StateResource } from '@alfa-client/tech-shared';
import {
VorgangService,
VorgangWithEingangLinkRel,
VorgangWithEingangResource,
} from '@alfa-client/vorgang-shared';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { Observable, of } from 'rxjs';
import { ResourceServiceConfig } from '../../../tech-shared/src/lib/resource/resource.model';
import { ResourceRepository } from '../../../tech-shared/src/lib/resource/resource.repository';
import { ResourceService } from '../../../tech-shared/src/lib/resource/resource.service';
......@@ -36,9 +36,20 @@ export class BescheidService {
}
public getBescheidDraft(): Observable<StateResource<BescheidResource>> {
return this.resourceService.get();
// temporary dummy resource
return of(
createStateResource<BescheidResource>({
beschiedenAm: '2024-03-01',
bewilligt: true,
_links: {
self: {
href: '',
},
},
}),
);
// return this.resourceService.get();
}
public getBescheidCommand(): Observable<StateResource<CommandResource>> {
return this.facade.getBescheidCommand();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment