mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Fix code formatting
This commit is contained in:
parent
6c1507c88c
commit
094d2e586a
@ -53,7 +53,10 @@ function removeColumns(event: Event): void {
|
|||||||
/**
|
/**
|
||||||
* Submit form configuration to the NetBox API.
|
* Submit form configuration to the NetBox API.
|
||||||
*/
|
*/
|
||||||
async function submitFormConfig(url: string, formConfig: Dict<Dict>): Promise<APIResponse<APIUserConfig>> {
|
async function submitFormConfig(
|
||||||
|
url: string,
|
||||||
|
formConfig: Dict<Dict>,
|
||||||
|
): Promise<APIResponse<APIUserConfig>> {
|
||||||
return await apiPatch<APIUserConfig>(url, formConfig);
|
return await apiPatch<APIUserConfig>(url, formConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,9 +73,9 @@ function handleSubmit(event: Event): void {
|
|||||||
const url = element.getAttribute('data-url');
|
const url = element.getAttribute('data-url');
|
||||||
if (url == null) {
|
if (url == null) {
|
||||||
const toast = createToast(
|
const toast = createToast(
|
||||||
'danger',
|
'danger',
|
||||||
'Error Updating Table Configuration',
|
'Error Updating Table Configuration',
|
||||||
'No API path defined for configuration form.'
|
'No API path defined for configuration form.',
|
||||||
);
|
);
|
||||||
toast.show();
|
toast.show();
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user