Compare commits
No commits in common. "d1f67d894d691276e1386db8d0adba6ab8c65935" and "59422455bb15beb8b72ded36b0c5ae1fa05ec98e" have entirely different histories.
d1f67d894d
...
59422455bb
2 changed files with 4 additions and 2 deletions
|
@ -149,12 +149,12 @@ const menuItems: ContextMenuItem[] = [
|
||||||
]
|
]
|
||||||
|
|
||||||
console.log("me:", props.me);
|
console.log("me:", props.me);
|
||||||
if (props.author?.user.uuid == props.me.uuid) {
|
if (props.author?.uuid == props.me.uuid) {
|
||||||
// Inserts "edit" option at index 1 (below the "reply" option)
|
// Inserts "edit" option at index 1 (below the "reply" option)
|
||||||
menuItems.splice(1, 0, { name: "Edit (WIP)", icon: "lucide:square-pen", type: "normal", callback: () => { /* if (messageElement.value) editMessage(messageElement.value, props) */ } });
|
menuItems.splice(1, 0, { name: "Edit (WIP)", icon: "lucide:square-pen", type: "normal", callback: () => { /* if (messageElement.value) editMessage(messageElement.value, props) */ } });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (props.author?.user.uuid == props.me.uuid /* || check message delete permission*/) {
|
if (props.author?.uuid == props.me.uuid /* || check message delete permission*/) {
|
||||||
// Inserts "edit" option at index 2 (below the "edit" option)
|
// Inserts "edit" option at index 2 (below the "edit" option)
|
||||||
menuItems.splice(2, 0, { name: "Delete (WIP)", icon: "lucide:trash", type: "danger", callback: () => {} });
|
menuItems.splice(2, 0, { name: "Delete (WIP)", icon: "lucide:trash", type: "danger", callback: () => {} });
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,6 +79,8 @@ onActivated(async () => {
|
||||||
async function setArrayVariables() {
|
async function setArrayVariables() {
|
||||||
const membersRes = await fetchMembers(route.params.serverId as string);
|
const membersRes = await fetchMembers(route.params.serverId as string);
|
||||||
members.value = membersRes.objects;
|
members.value = membersRes.objects;
|
||||||
|
members.value = await fetchMembers(route.params.serverId as string);
|
||||||
|
console.log("Placeholder count:", totalMemberCount.value);
|
||||||
const guildUrl = `guilds/${route.params.serverId}`;
|
const guildUrl = `guilds/${route.params.serverId}`;
|
||||||
channels.value = await fetchWithApi(`${guildUrl}/channels`);
|
channels.value = await fetchWithApi(`${guildUrl}/channels`);
|
||||||
console.log("channels:", channels.value);
|
console.log("channels:", channels.value);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue