Skip to content

Commit

Permalink
Merge branch 'feat/new-network-ui' of github.com:enkryptcom/enKrypt i…
Browse files Browse the repository at this point in the history
…nto feat/new-network-ui
  • Loading branch information
kvhnuke committed Dec 18, 2024
2 parents a063c24 + 81a7674 commit c695e72
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 @@ -297,7 +297,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 @@ -24,6 +24,7 @@
:new-network-tags="newNetworksWithTags"
@click="setNetwork(element)"
@update:pin-network="updatePinNetwork"
@update:gradient="emit('update:gradient', $event)"
:class="{
'do-not-drag': !getCanDrag(element),
}"
Expand Down Expand Up @@ -91,6 +92,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;
}>();
const newNetworksWithTags = ref<{ networks: string[]; swap: string[] }>({
networks: [],
Expand Down

0 comments on commit c695e72

Please sign in to comment.