Skip to content

Commit

Permalink
fixup! Adds scheme editor
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongundel committed Nov 22, 2024
1 parent b141d12 commit 2bb1595
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const MAXIMIZE = "maximize";
const SIDE = "side";
const CLOSE = "close";
</script>

<script setup lang="ts">
import { useGettext } from "vue3-gettext";
import Button from "primevue/button";
Expand All @@ -15,6 +14,7 @@ const props = defineProps<{
}>();
const emit = defineEmits([MAXIMIZE, SIDE, CLOSE]);
const toggleSize = () => {
if (props.editorMax) {
emit(MAXIMIZE);
Expand All @@ -29,8 +29,8 @@ const toggleSize = () => {
<div>
<h2>{{ $gettext("Scheme Editor Tools") }}</h2>
<div>
<Button @click="toggleSize"
><i
<Button @click="toggleSize">
<i
:class="{
pi: true,
'pi-window-maximize': props.editorMax,
Expand All @@ -39,8 +39,8 @@ const toggleSize = () => {
aria-hidden="true"
/>
</Button>
<Button @click="$emit(CLOSE)"
><i
<Button @click="$emit(CLOSE)">
<i
class="pi pi-times"
aria-hidden="true"
/>
Expand Down

0 comments on commit 2bb1595

Please sign in to comment.