24 lines
863 B
JavaScript
24 lines
863 B
JavaScript
(function () {
|
|
const OrgPortal = (window.OrgPortal = window.OrgPortal || {});
|
|
const { createSignal } = window.RegistryApp.runtime;
|
|
const { portalData } = OrgPortal.data;
|
|
|
|
class OrgPortalStore {
|
|
constructor() {
|
|
[this.getFunds, this.setFunds] = createSignal(portalData.funds);
|
|
[this.getMembers, this.setMembers] = createSignal([
|
|
...portalData.members,
|
|
]);
|
|
[this.getCreditLines, this.setCreditLines] = createSignal([]);
|
|
[this.getTreasuryNotice, this.setTreasuryNotice] = createSignal({
|
|
type: "",
|
|
text: "",
|
|
});
|
|
[this.getModal, this.setModal] = createSignal(null);
|
|
[this.getOrgDisbanded, this.setOrgDisbanded] = createSignal(false);
|
|
}
|
|
}
|
|
|
|
OrgPortal.store = new OrgPortalStore();
|
|
})();
|