Seperate themes and layouts into seperate settings #63
2 changed files with 2 additions and 4 deletions
|
@ -149,12 +149,12 @@ const menuItems: ContextMenuItem[] = [
|
|||
]
|
||||
|
||||
console.log("me:", props.me);
|
||||
if (props.author?.uuid == props.me.uuid) {
|
||||
if (props.author?.user.uuid == props.me.uuid) {
|
||||
// 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) */ } });
|
||||
}
|
||||
|
||||
if (props.author?.uuid == props.me.uuid /* || check message delete permission*/) {
|
||||
if (props.author?.user.uuid == props.me.uuid /* || check message delete permission*/) {
|
||||
// Inserts "edit" option at index 2 (below the "edit" option)
|
||||
menuItems.splice(2, 0, { name: "Delete (WIP)", icon: "lucide:trash", type: "danger", callback: () => {} });
|
||||
}
|
||||
|
|
|
@ -79,8 +79,6 @@ onActivated(async () => {
|
|||
async function setArrayVariables() {
|
||||
const membersRes = await fetchMembers(route.params.serverId as string);
|
||||
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}`;
|
||||
channels.value = await fetchWithApi(`${guildUrl}/channels`);
|
||||
console.log("channels:", channels.value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue