Skip to content

Commit

Permalink
FuncUpdated should not navigate. Also icon button disabling
Browse files Browse the repository at this point in the history
  • Loading branch information
jobelenus committed Jan 14, 2025
1 parent c1f077e commit 5840818
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions app/web/src/components/AssetDetailIntrinsicInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
/>
</DropdownMenu>
<DetailsPanelMenuIcon
:disabled="isLocked"
:selected="contextMenuRef?.isOpen"
@click="
(e) => {
Expand Down
2 changes: 2 additions & 0 deletions app/web/src/components/DetailsPanelMenuIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
icon="dots-vertical"
iconIdleTone="neutral"
:selected="selected"
:disabled="disabled"
/>
</template>

Expand All @@ -12,5 +13,6 @@ import { IconButton } from "@si/vue-lib/design-system";
defineProps({
selected: { type: Boolean },
disabled: { type: Boolean, default: false },
});
</script>
8 changes: 0 additions & 8 deletions app/web/src/store/func/funcs.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -890,14 +890,6 @@ export const useFuncStore = () => {
bindings.codegenBindings;
this.managementBindings[data.funcSummary.funcId] =
bindings.managementBindings;

if (
metadata.actor !== "System" &&
metadata.actor.User === authStore.userPk
) {
const assetStore = useAssetStore(selectedChangeSetId);
assetStore.setFuncSelection(data.funcSummary.funcId);
}
},
},
{
Expand Down

0 comments on commit 5840818

Please sign in to comment.