Compare commits

...

2 commits

Author SHA1 Message Date
430a9f789a
Link to Mastodon admin dashboard instead of AdminFE 2024-01-21 00:00:41 -06:00
17fd7e288b
Remove post previews
The way they work is incompatible with the Mastodon API.
2024-01-21 00:00:21 -06:00
3 changed files with 2 additions and 46 deletions

View file

@ -167,7 +167,7 @@
</button> </button>
<a <a
v-if="currentUser && currentUser.role === 'admin'" v-if="currentUser && currentUser.role === 'admin'"
href="/pleroma/admin/#/login-pleroma" :href="'https://' + $store.getters.instanceDomain + '/admin/dashboard'"
class="nav-icon" class="nav-icon"
target="_blank" target="_blank"
@click.stop @click.stop

View file

@ -73,50 +73,6 @@
<p>{{ $t('post_status.edit_remote_warning') }}</p> <p>{{ $t('post_status.edit_remote_warning') }}</p>
<p>{{ $t('post_status.edit_unsupported_warning') }}</p> <p>{{ $t('post_status.edit_unsupported_warning') }}</p>
</div> </div>
<div
v-if="!disablePreview"
class="preview-heading faint"
>
<a
class="preview-toggle faint"
@click.stop.prevent="togglePreview"
>
{{ $t('post_status.preview') }}
<FAIcon :icon="showPreview ? 'chevron-left' : 'chevron-right'" />
</a>
<div
v-show="previewLoading"
class="preview-spinner"
>
<FAIcon
class="fa-old-padding"
spin
icon="circle-notch"
/>
</div>
</div>
<div
v-if="showPreview"
class="preview-container"
>
<div
v-if="!preview"
class="preview-status"
>
{{ $t('general.loading') }}
</div>
<div
v-else-if="preview.error"
class="preview-status preview-error"
>
{{ preview.error }}
</div>
<StatusContent
v-else
:status="preview"
class="preview-status"
/>
</div>
<EmojiInput <EmojiInput
ref="subject-emoji-input" ref="subject-emoji-input"
v-if="subjectVisible" v-if="subjectVisible"

View file

@ -163,7 +163,7 @@
@click="toggleDrawer" @click="toggleDrawer"
> >
<a <a
href="/pleroma/admin/#/login-pleroma" :href="'https://' + $store.getters.instanceDomain + '/admin/dashboard'"
target="_blank" target="_blank"
> >
<FAIcon <FAIcon