Drawer better toggle logic

This commit is contained in:
Jörn-Michael Miehe 2023-09-12 16:11:03 +00:00
parent c7fd54f60d
commit 334540187e

View file

@ -53,12 +53,12 @@ export default class extends Vue {
public toggle() {
this.is_open = !this.is_open;
this.refresh();
if (this.is_open) this.$emit("open");
}
public refresh() {
if (!this.is_open) return;
this.$emit("open");
this.is_open = false;
this.toggle();
}
}
</script>