Skip to content

Commit

Permalink
chore: 잡다한 주석 및 코드 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
lavi27 committed Jan 20, 2024
1 parent a5363b6 commit d32377c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
13 changes: 9 additions & 4 deletions pages/dashboard/invite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,27 +279,31 @@ const setting = useState('inviteSetting', () => {
// this.switch_[name] = !this.switch_[name]
// }
// const checkVote = () => {
// this.connState = 0
// location.reload()
// }
const clickInviteLink = () => {
if (hasPermission.value) return
modalShow(MODAL.permission)
}
const clickCustomDomain = () => {
if (isEnterprise.value) return
modalShow(MODAL.premiereOnly)
}
// const checkVote = () => {
// this.connState = 0
// location.reload()
// }
const reconfirmSaveSettings = async () => {
if (setting.value.inviteLink.enabled && setting.value.inviteLink.settings.inviteURL.value != '') {
modalShow(MODAL.customDomain)
} else {
saveSettings()
}
}
const saveSettings = async () => {
try {
const { inviteLink } = setting.value
Expand Down Expand Up @@ -338,6 +342,7 @@ onMounted(async () => {
if (res.settings.link) inviteURL.value = res.settings.link
}
//TODO - NGuard API v3 준비
// setting.value.invite = Boolean(res.settings.status)
// setting.value.domain = Boolean(res.domain.domain)
// setting.value.domainSSL = res.domain.ssl
Expand Down
2 changes: 1 addition & 1 deletion pages/dashboard/members.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const setBlackList = async () => {
const member = memberMap.value[targetId]
member.isBlackList = !member.isBlackList
} catch (e) {
await modalShowAndClose(MODAL.failed, 3000)
modalShowAndClose(MODAL.failed, 3000)
}
}
Expand Down
5 changes: 0 additions & 5 deletions pages/dashboard/verify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,6 @@ onMounted(async () => {
}
}
// this.switch_.confirm = true
// this.list.role.list = res.guild.roles
// this.roleList = res.guild.roles
// this.input.role = res.settings.role ? res.settings.role : res.guild.roles[0]
loadingSuccess()
} catch (e) {}
})
Expand Down

0 comments on commit d32377c

Please sign in to comment.