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