This commit is contained in:
@@ -19,13 +19,9 @@
|
|||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="banInfo.bannedAt" class="detail-item">
|
|
||||||
<span class="detail-label">Banned on:</span>
|
|
||||||
<span class="detail-value">{{ formatDate(banInfo.bannedAt) }}</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-if="banInfo.bannedUntil && !banInfo.isPermanent"
|
v-if="banInfo.bannedUntil"
|
||||||
class="detail-item"
|
class="detail-item"
|
||||||
>
|
>
|
||||||
<span class="detail-label">Ban expires:</span>
|
<span class="detail-label">Ban expires:</span>
|
||||||
@@ -34,11 +30,11 @@
|
|||||||
}}</span>
|
}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="banInfo.isPermanent" class="detail-item permanent-ban">
|
<!-- <div v-if="banInfo.bannedUntil" class="detail-item permanent-ban">
|
||||||
<AlertCircle :size="18" />
|
<AlertCircle :size="18" />
|
||||||
<span>This is a permanent ban</span>
|
<span>Banned until {{ formatDate(banInfo.bannedUntil) }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<div class="appeal-section">
|
<div class="appeal-section">
|
||||||
<p class="appeal-text">
|
<p class="appeal-text">
|
||||||
@@ -121,9 +117,6 @@ const banInfo = computed(() => {
|
|||||||
return {
|
return {
|
||||||
reason: authStore.user.ban?.reason,
|
reason: authStore.user.ban?.reason,
|
||||||
bannedUntil: authStore.user.ban?.expires,
|
bannedUntil: authStore.user.ban?.expires,
|
||||||
isPermanent:
|
|
||||||
authStore.user.ban?.permanent || !authStore.user.ban?.bannedUntil,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const formatDate = (date) => {
|
const formatDate = (date) => {
|
||||||
@@ -305,14 +298,6 @@ onMounted(() => {
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.permanent-ban {
|
|
||||||
justify-content: center;
|
|
||||||
gap: 0.5rem;
|
|
||||||
color: #ef4444;
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 0.9375rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-box {
|
.info-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user