forked from FoundKeyGang/FoundKey
Remove client promotion code
This commit is contained in:
parent
c7bf29fd49
commit
7f806ca06b
1 changed files with 0 additions and 23 deletions
|
@ -158,19 +158,6 @@ export function getNoteMenu(props: {
|
||||||
props.isDeleted.value = true;
|
props.isDeleted.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function promote(): Promise<void> {
|
|
||||||
const { canceled, result: days } = await os.inputNumber({
|
|
||||||
title: i18n.ts.numberOfDays,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (canceled) return;
|
|
||||||
|
|
||||||
os.apiWithDialog('admin/promo/create', {
|
|
||||||
noteId: appearNote.id,
|
|
||||||
expiresAt: Date.now() + (86400000 * days),
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function share(): void {
|
function share(): void {
|
||||||
navigator.share({
|
navigator.share({
|
||||||
title: i18n.t('noteOf', { user: appearNote.user.name }),
|
title: i18n.t('noteOf', { user: appearNote.user.name }),
|
||||||
|
@ -272,16 +259,6 @@ export function getNoteMenu(props: {
|
||||||
text: i18n.ts.pin,
|
text: i18n.ts.pin,
|
||||||
action: () => togglePin(true),
|
action: () => togglePin(true),
|
||||||
} : undefined,
|
} : undefined,
|
||||||
/*
|
|
||||||
...($i.isModerator || $i.isAdmin ? [
|
|
||||||
null,
|
|
||||||
{
|
|
||||||
icon: 'fas fa-bullhorn',
|
|
||||||
text: i18n.ts.promote,
|
|
||||||
action: promote
|
|
||||||
}]
|
|
||||||
: []
|
|
||||||
),*/
|
|
||||||
...(appearNote.userId !== $i.id ? [
|
...(appearNote.userId !== $i.id ? [
|
||||||
null,
|
null,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue