| 188 | } |
| 189 | |
| 190 | async function hydratePendingResolution(opts: LicensePendingResolutionInput = {}) { |
| 191 | if (!useUserStore().isAdmin) return; |
| 192 | |
| 193 | loadingPendingResolution.value = true; |
| 194 | |
| 195 | try { |
| 196 | const result: LicensePendingResolution[] | void = await sdk.request(generateLicensePendingResolution(opts)); |
| 197 | pendingResolution.value = result ?? []; |
| 198 | } finally { |
| 199 | loadingPendingResolution.value = false; |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | async function resolve(payload: ApplyLicenseResolutionInput) { |
| 204 | await sdk.request(applyLicenseResolution(payload)); |