auth
This commit is contained in:
@@ -12,6 +12,10 @@ export class Issues {
|
||||
private readonly router = inject(Router);
|
||||
private readonly issuesStore = inject(IssuesStore);
|
||||
|
||||
constructor() {
|
||||
this.issuesStore.load();
|
||||
}
|
||||
|
||||
protected readonly issues = this.issuesStore.issues;
|
||||
protected selectedType: IssueEntity['type'] | null = null;
|
||||
|
||||
@@ -29,10 +33,7 @@ export class Issues {
|
||||
}
|
||||
|
||||
protected createIssue(): void {
|
||||
const nextId = this.issuesStore.getNextId();
|
||||
this.router.navigate(['/issues/new'], {
|
||||
queryParams: { draftId: nextId, mode: 'edit' },
|
||||
});
|
||||
this.router.navigate(['/issues/new']);
|
||||
}
|
||||
|
||||
protected openIssue(issueId: number): void {
|
||||
|
||||
Reference in New Issue
Block a user