Skip to content

Commit

Permalink
fix(ui): topology should be horizontal by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Jan 9, 2023
1 parent bf13047 commit 4370968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/graph/Topology.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}
})
const isHorizontal = ref(localStorage.getItem("topology-orientation") === "1");
const isHorizontal = ref(localStorage.getItem("topology-orientation") !== "0");
const isLoading = ref(false);
const generateDagreGraph = () => {
Expand Down Expand Up @@ -100,7 +100,7 @@
const toggleOrientation = () => {
localStorage.setItem(
"topology-orientation",
localStorage.getItem("topology-orientation") === "1" ? 0 : 1
localStorage.getItem("topology-orientation") !== "0" ? "0" : "1"
);
isHorizontal.value = localStorage.getItem("topology-orientation") === "1";
Expand Down

0 comments on commit 4370968

Please sign in to comment.