mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
fix: 🐛 Fix dev breaking when signed out
This commit is contained in:
parent
53b71afdd5
commit
f8e219889c
|
|
@ -46,8 +46,8 @@ export const state = reactive<ComposerState>({
|
||||||
watch(
|
watch(
|
||||||
state,
|
state,
|
||||||
(newState) => {
|
(newState) => {
|
||||||
const characterLimit = (identity.value as Identity).instance
|
const characterLimit =
|
||||||
.configuration.statuses.max_characters;
|
identity.value?.instance.configuration.statuses.max_characters ?? 0;
|
||||||
const characterCount = newState.rawContent.length;
|
const characterCount = newState.rawContent.length;
|
||||||
|
|
||||||
state.canSend =
|
state.canSend =
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
</SidebarProvider>
|
</SidebarProvider>
|
||||||
<MobileNavbar v-if="identity" />
|
<MobileNavbar v-if="identity" />
|
||||||
<Preferences />
|
<Preferences />
|
||||||
<ComposerDialog />
|
<ComposerDialog v-if="identity" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<slot />
|
<slot />
|
||||||
<ComposerDialog />
|
<ComposerDialog v-if="identity" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import ComposerDialog from "~/components/composer/dialog.vue";
|
import ComposerDialog from "~/components/composer/dialog.vue";
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue