2022-12-22 08:31:12 +00:00
|
|
|
<script setup>
|
|
|
|
const disabled = computed(() => !isMastoInitialised.value || !currentUser.value)
|
|
|
|
const disabledVisual = computed(() => isMastoInitialised.value && !currentUser.value)
|
|
|
|
</script>
|
|
|
|
|
2022-11-24 08:04:53 +00:00
|
|
|
<template>
|
2022-12-22 08:31:12 +00:00
|
|
|
<button
|
2022-12-28 07:00:49 +00:00
|
|
|
flex="~ gap2 center"
|
|
|
|
w-9 h-9 py2
|
|
|
|
lg="w-auto h-auto py-4"
|
|
|
|
rounded-full
|
2022-12-22 08:31:12 +00:00
|
|
|
cursor-pointer disabled:pointer-events-none
|
2022-12-28 07:00:49 +00:00
|
|
|
text-primary font-bold
|
|
|
|
border-1 border-primary
|
|
|
|
:class="disabledVisual ? 'op25' : 'hover:bg-primary hover:text-inverted'"
|
|
|
|
:disabled="disabled"
|
2022-12-22 08:31:12 +00:00
|
|
|
@click="openPublishDialog()"
|
|
|
|
>
|
2022-11-24 08:04:53 +00:00
|
|
|
<div i-ri:quill-pen-line />
|
2022-12-21 00:02:01 +00:00
|
|
|
<span hidden lg:block>{{ $t('action.compose') }}</span>
|
2022-11-24 08:04:53 +00:00
|
|
|
</button>
|
|
|
|
</template>
|