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
|
|
|
|
color-primary rounded-full ml-7 lg:ml-3 w-9 lg:w-auto font-bold py2 lg:py4 flex="~ gap2 center"
|
|
|
|
cursor-pointer disabled:pointer-events-none
|
|
|
|
text-primary border-1 border-primary
|
|
|
|
:disabled="disabled" :class="disabledVisual ? 'op25' : 'hover:bg-primary hover:text-inverted'"
|
|
|
|
@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>
|