[WEB-4781] fix: add peek view get to store #7654
This commit is contained in:
parent
6d1275d58c
commit
3602ff6930
1 changed files with 6 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ export interface IIssueDetail
|
|||
attachmentDeleteModalId: string | null;
|
||||
// computed
|
||||
isAnyModalOpen: boolean;
|
||||
isPeekOpen: boolean;
|
||||
// helper actions
|
||||
getIsIssuePeeked: (issueId: string) => boolean;
|
||||
// actions
|
||||
|
|
@ -188,6 +189,7 @@ export abstract class IssueDetail implements IIssueDetail {
|
|||
lastWidgetAction: observable.ref,
|
||||
// computed
|
||||
isAnyModalOpen: computed,
|
||||
isPeekOpen: computed,
|
||||
// action
|
||||
setPeekIssue: action,
|
||||
setIssueLinkData: action,
|
||||
|
|
@ -235,6 +237,10 @@ export abstract class IssueDetail implements IIssueDetail {
|
|||
);
|
||||
}
|
||||
|
||||
get isPeekOpen() {
|
||||
return !!this.peekIssue;
|
||||
}
|
||||
|
||||
// helper actions
|
||||
getIsIssuePeeked = (issueId: string) => this.peekIssue?.issueId === issueId;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue