From 805fe799fca3107020aa2e1564a6d8d2936c230c Mon Sep 17 00:00:00 2001 From: stack72 Date: Thu, 20 Jun 2024 19:51:21 +0100 Subject: [PATCH] fix(web): Remove the disabled state of the regenerate asset button We need to be able to regenerate the asset at any time --- app/web/src/components/AssetDetailsPanel.vue | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/app/web/src/components/AssetDetailsPanel.vue b/app/web/src/components/AssetDetailsPanel.vue index 5151c6015c..1ef5012bc1 100644 --- a/app/web/src/components/AssetDetailsPanel.vue +++ b/app/web/src/components/AssetDetailsPanel.vue @@ -13,7 +13,6 @@ :loading="execAssetReqStatus.isPending" loadingText="Regenerating Asset..." label="Regenerate Asset" - :disabled="disabled" successText="Successful" :requestStatus="execAssetReqStatus" tone="action" @@ -102,7 +101,7 @@ placeholder="(optional) Provide a brief description of the asset" @blur="updateAsset" /> - + { } }; -const disabled = ref(true); -watch( - () => editingAsset.value, - () => { - disabled.value = !_.isEqual(editingAsset.value, assetStore.selectedAsset); - }, - { - deep: true, - }, -); - const execAssetReqStatus = assetStore.getRequestStatus( "EXEC_ASSET", assetStore.selectedAssetId,