Skip to content

Commit

Permalink
NN-649 recenter graph button in appbar
Browse files Browse the repository at this point in the history
  • Loading branch information
anlisha-maharjan committed Jan 15, 2025
1 parent 92fc03f commit f3ff472
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/layout/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
</template>

<template #center>
<Button @click="center" plain text class="capitalize">
<span class="material-symbols-rounded">center_focus_strong</span>
Recenter graph
</Button>
</template>

<template #end>
Expand Down Expand Up @@ -70,6 +74,9 @@ export default {
this.toast = useToast();
},
methods: {
center() {
this.emitter.emit("centerGraph", { check: true, mode: this.mode });
},
toggle_widget(event) {
this.$emit("widget_toggled", event);
},
Expand Down

0 comments on commit f3ff472

Please sign in to comment.