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