Loading frontend/src/components/DefinitionList/DefinitionButtons.tsx +4 −4 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ interface DefinitionButtonsProps { const DefinitionButtons: FC<DefinitionButtonsProps> = ({ definition }) => { const [alertOpen, setAlertOpen] = useState(false) const [donwloadLoading, setDonwloadLoading] = useState(false) const [downloadLoading, setDownloadLoading] = useState(false) const host = useHost() const { id: definitionId } = definition Loading @@ -41,7 +41,7 @@ const DefinitionButtons: FC<DefinitionButtonsProps> = ({ definition }) => { useTypedMutation(DeleteDefinition) const onDownload = () => { setDonwloadLoading(true) setDownloadLoading(true) authenticatedFetch(downloadDefinitionUrl(host, definition.id)) .then(response => response.blob()) Loading @@ -57,7 +57,7 @@ const DefinitionButtons: FC<DefinitionButtonsProps> = ({ definition }) => { notify(error.message, JSON.stringify(error), { intent: 'danger' }) ) .finally(() => { setDonwloadLoading(false) setDownloadLoading(false) }) } Loading @@ -75,7 +75,7 @@ const DefinitionButtons: FC<DefinitionButtonsProps> = ({ definition }) => { icon='download' fill title='Download' loading={donwloadLoading} loading={downloadLoading} onClick={onDownload} /> <Button Loading Loading
frontend/src/components/DefinitionList/DefinitionButtons.tsx +4 −4 Original line number Diff line number Diff line Loading @@ -32,7 +32,7 @@ interface DefinitionButtonsProps { const DefinitionButtons: FC<DefinitionButtonsProps> = ({ definition }) => { const [alertOpen, setAlertOpen] = useState(false) const [donwloadLoading, setDonwloadLoading] = useState(false) const [downloadLoading, setDownloadLoading] = useState(false) const host = useHost() const { id: definitionId } = definition Loading @@ -41,7 +41,7 @@ const DefinitionButtons: FC<DefinitionButtonsProps> = ({ definition }) => { useTypedMutation(DeleteDefinition) const onDownload = () => { setDonwloadLoading(true) setDownloadLoading(true) authenticatedFetch(downloadDefinitionUrl(host, definition.id)) .then(response => response.blob()) Loading @@ -57,7 +57,7 @@ const DefinitionButtons: FC<DefinitionButtonsProps> = ({ definition }) => { notify(error.message, JSON.stringify(error), { intent: 'danger' }) ) .finally(() => { setDonwloadLoading(false) setDownloadLoading(false) }) } Loading @@ -75,7 +75,7 @@ const DefinitionButtons: FC<DefinitionButtonsProps> = ({ definition }) => { icon='download' fill title='Download' loading={donwloadLoading} loading={downloadLoading} onClick={onDownload} /> <Button Loading