Skip to content

Commit

Permalink
add isBacklogQuarter to quarter min and implement it in the objective…
Browse files Browse the repository at this point in the history
… menu
  • Loading branch information
Miguel7373 committed Jan 23, 2025
1 parent 6b56eaf commit d9b503d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/app/services/objective-menu-actions.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { ObjectiveMenuAfterActions } from '../components/objective/objective-men
import { ObjectiveService } from './objective.service';
import { RefreshDataService } from './refresh-data.service';
import { ObjectiveMenuActions } from '../components/objective/objective-menu-actions';
import { GJ_REGEX_PATTERN } from '../shared/constant-library';
import { CompletedService } from './completed.service';

export type ObjectiveMenuAction = () => MatDialogRef<any>;
Expand Down Expand Up @@ -87,6 +86,6 @@ export class ObjectiveMenuActionsService {
}

private isInBacklogQuarter(objective: ObjectiveMin) {
return !GJ_REGEX_PATTERN.test(objective.quarter.label);
return !objective.quarter.isBacklogQuarter;
}
}
1 change: 1 addition & 0 deletions frontend/src/app/shared/types/model/quarter-min.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export interface QuarterMin {
id: number;
label: string;
isBacklogQuarter: boolean;
}

0 comments on commit d9b503d

Please sign in to comment.