mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
32 lines
617 B
TypeScript
32 lines
617 B
TypeScript
|
import { observable, action, computed, makeObservable, runInAction } from "mobx";
|
||
|
import { IIssue } from "types";
|
||
|
|
||
|
export interface IIssueStore {
|
||
|
loader: boolean;
|
||
|
error: any | null;
|
||
|
}
|
||
|
|
||
|
class IssueStore implements IIssueStore {
|
||
|
loader: boolean = false;
|
||
|
error: any | null = null;
|
||
|
issues: {
|
||
|
[project_id: string]: {
|
||
|
grouped: any;
|
||
|
ungrouped: IIssue[];
|
||
|
};
|
||
|
} = {};
|
||
|
|
||
|
constructor() {
|
||
|
makeObservable(this, {
|
||
|
// observable
|
||
|
loader: observable.ref,
|
||
|
error: observable.ref,
|
||
|
issues: observable.ref,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
fetchIssuesWithParams() {}
|
||
|
}
|
||
|
|
||
|
export default IssueStore;
|