(nodeId: string, includeExtend?: boolean)
| 411 | * @returns |
| 412 | */ |
| 413 | export function disableRoleExtend(nodeId: string, includeExtend?: boolean) { |
| 414 | const params = includeExtend ? { includeExtend } : {}; |
| 415 | if (getBrowserDatabusApiEnabled()) { |
| 416 | WasmApi.getInstance() |
| 417 | .delete_cache(nodeId) |
| 418 | .then((result) => { |
| 419 | console.log('delete indexDb cache', result); |
| 420 | }); |
| 421 | } |
| 422 | return axios.post(Url.DISABLE_ROLE_EXTEND + `?nodeId=${nodeId}`, params); |
| 423 | } |
| 424 | |
| 425 | /** |
| 426 | * Delete node role |
nothing calls this directly
no test coverage detected