Skip to content

Commit

Permalink
fix(frontend): sftp for files button 2
Browse files Browse the repository at this point in the history
  • Loading branch information
thewander02 committed Oct 16, 2024
1 parent b0cddd8 commit 33e09c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion apps/frontend/src/composables/pyroServers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,6 @@ const modules: any = {
}
data.image = (await processImage(data.project?.icon_url)) ?? undefined;
const motd = await getMotd();
console.log(motd);
if (motd === "A Minecraft Server") {
await setMotd(`§b${data.project?.title} §f♦ §aModrinth Servers`);
}
Expand Down
6 changes: 5 additions & 1 deletion apps/frontend/src/pages/servers/manage/[id]/files.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
<template #upload> <UploadIcon aria-hidden="true" /> Upload </template>
</OverflowMenu>
</ButtonStyled>
<Button> Launch SFTP </Button>
<Button @click="openSftp"> Launch SFTP </Button>
</div>
</div>
<div
Expand Down Expand Up @@ -711,4 +711,8 @@ const cancelEditing = () => {
editingFile.value = null;
fileContent.value = "";
};
const openSftp = () => {
window.open(`sftp://${data.value?.sftp_username}@${data.value?.sftp_host}`);
};
</script>

0 comments on commit 33e09c6

Please sign in to comment.