Skip to content

Commit

Permalink
devop: put back the gradient update
Browse files Browse the repository at this point in the history
  • Loading branch information
olgakup committed Dec 18, 2024
1 parent 3a6e4e4 commit 81a7674
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/extension/src/ui/action/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ onMounted(async () => {
openOnboard();
}
});
//TODO: WHAT IS THIS?
/**
* Update the gradient of the app menu on the active network change
*/
const updateGradient = (newGradient: string) => {
//hack may be there is a better way. less.modifyVars doesnt work
if (appMenuRef.value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
:can-drag="getCanDrag(element)"
@click="emit('update:network', element)"
@update:pin-network="updatePinNetwork"
@update:gradient="emit('update:gradient', $event)"
:class="{
'do-not-drag': !getCanDrag(element),
}"
Expand Down Expand Up @@ -93,6 +94,7 @@ const emit = defineEmits<{
(e: 'update:network', network: BaseNetwork): void;
(e: 'update:order', networks: BaseNetwork[]): void;
(e: 'update:pinNetwork', network: string, isPinned: boolean): void;
(e: 'update:gradient', data: string): void;
}>();
/** ------------------
Expand Down

0 comments on commit 81a7674

Please sign in to comment.