Skip to content

Commit

Permalink
merge: #4002
Browse files Browse the repository at this point in the history
4002: fix(web): Remove the disabled state of the regenerate asset button r=stack72 a=stack72

We need to be able to regenerate the asset at any time

Co-authored-by: stack72 <[email protected]>
  • Loading branch information
si-bors-ng[bot] and stack72 authored Jun 20, 2024
2 parents 68e829e + 805fe79 commit 222a3b7
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions app/web/src/components/AssetDetailsPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
:loading="execAssetReqStatus.isPending"
loadingText="Regenerating Asset..."
label="Regenerate Asset"
:disabled="disabled"
successText="Successful"
:requestStatus="execAssetReqStatus"
tone="action"
Expand Down Expand Up @@ -102,7 +101,7 @@
placeholder="(optional) Provide a brief description of the asset"
@blur="updateAsset"
/>
<VormInput type="container" compact label="color" :disabled="disabled">
<VormInput type="container" compact label="color">
<ColorPicker
id="color"
v-model="editingAsset.color"
Expand Down Expand Up @@ -217,17 +216,6 @@ const updateAsset = async () => {
}
};
const disabled = ref(true);
watch(
() => editingAsset.value,
() => {
disabled.value = !_.isEqual(editingAsset.value, assetStore.selectedAsset);
},
{
deep: true,
},
);
const execAssetReqStatus = assetStore.getRequestStatus(
"EXEC_ASSET",
assetStore.selectedAssetId,
Expand Down

0 comments on commit 222a3b7

Please sign in to comment.