Skip to content

Commit

Permalink
revert to strings to remove double script tag
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongundel committed Dec 3, 2024
1 parent cdd550b commit 2b96c94
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
<script lang="ts">
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 @@ -13,13 +8,13 @@ const props = defineProps<{
editorMax: boolean;
}>();
const emit = defineEmits([MAXIMIZE, SIDE, CLOSE]);
const emit = defineEmits(["maximize", "side", "close"]);
const toggleSize = () => {
if (props.editorMax) {
emit(MAXIMIZE);
emit("maximize");
} else {
emit(SIDE);
emit("side");
}
};
</script>
Expand All @@ -39,7 +34,7 @@ const toggleSize = () => {
aria-hidden="true"
/>
</Button>
<Button @click="$emit(CLOSE)">
<Button @click="$emit('close')">
<i
class="pi pi-times"
aria-hidden="true"
Expand Down

0 comments on commit 2b96c94

Please sign in to comment.