2019-02-25 20:34:24 -08:00
|
|
|
<template>
|
|
|
|
<basic-user-card :user="user">
|
2019-02-27 08:58:29 -08:00
|
|
|
<div class="follow-request-card-content-container">
|
2019-07-05 00:17:44 -07:00
|
|
|
<button
|
2020-11-24 02:32:42 -08:00
|
|
|
class="btn button-default"
|
2019-07-05 00:17:44 -07:00
|
|
|
@click="approveUser"
|
|
|
|
>
|
|
|
|
{{ $t('user_card.approve') }}
|
|
|
|
</button>
|
|
|
|
<button
|
2020-11-24 02:32:42 -08:00
|
|
|
class="btn button-default"
|
2019-07-05 00:17:44 -07:00
|
|
|
@click="denyUser"
|
|
|
|
>
|
|
|
|
{{ $t('user_card.deny') }}
|
|
|
|
</button>
|
2019-02-27 08:58:29 -08:00
|
|
|
</div>
|
2022-06-07 09:37:16 -07:00
|
|
|
<teleport to="#modal">
|
|
|
|
<confirm-modal
|
|
|
|
v-if="showingApproveConfirmDialog"
|
|
|
|
:title="$t('user_card.approve_confirm_title')"
|
|
|
|
:confirm-text="$t('user_card.approve_confirm_accept_button')"
|
|
|
|
:cancel-text="$t('user_card.approve_confirm_cancel_button')"
|
|
|
|
@accepted="doApprove"
|
|
|
|
@cancelled="hideApproveConfirmDialog"
|
|
|
|
>
|
|
|
|
{{ $t('user_card.approve_confirm', { user: user.screen_name_ui }) }}
|
|
|
|
</confirm-modal>
|
|
|
|
<confirm-modal
|
|
|
|
v-if="showingDenyConfirmDialog"
|
|
|
|
:title="$t('user_card.deny_confirm_title')"
|
|
|
|
:confirm-text="$t('user_card.deny_confirm_accept_button')"
|
|
|
|
:cancel-text="$t('user_card.deny_confirm_cancel_button')"
|
|
|
|
@accepted="doDeny"
|
|
|
|
@cancelled="hideDenyConfirmDialog"
|
|
|
|
>
|
|
|
|
{{ $t('user_card.deny_confirm', { user: user.screen_name_ui }) }}
|
|
|
|
</confirm-modal>
|
|
|
|
</teleport>
|
2019-02-25 20:34:24 -08:00
|
|
|
</basic-user-card>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./follow_request_card.js"></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
2019-02-27 08:58:29 -08:00
|
|
|
.follow-request-card-content-container {
|
2019-02-25 20:34:24 -08:00
|
|
|
display: flex;
|
2023-01-09 10:02:16 -08:00
|
|
|
flex-flow: row wrap;
|
|
|
|
|
2019-02-25 20:34:24 -08:00
|
|
|
button {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
flex: 1 1;
|
|
|
|
max-width: 12em;
|
|
|
|
min-width: 8em;
|
2019-02-26 08:00:25 -08:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2019-02-25 20:34:24 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|