Skip to content

Commit

Permalink
create repository issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsej108 committed Oct 11, 2024
1 parent 231b683 commit deaecf0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
3 changes: 2 additions & 1 deletion applicationFE/src/views/repository/RepositoryList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ const formMode = ref('new')
* @Desc repository 생성버튼 클릭시 동작하는 함수 (formMode set)
*/
const onClickNewBtn = () => {
formMode.value = 'new'
selectRepositoryName.value = "";
formMode.value = 'new';
}
Expand Down
20 changes: 5 additions & 15 deletions applicationFE/src/views/repository/components/repositoryForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ watch(repositoryName, async () => {
onMounted(async () => {
await setInit();
const modalElement = document.getElementById('repositoryForm');
modalElement?.addEventListener('hidden.bs.modal', handleModalClose);
})
const repositoryFormData = ref({} as Repository)
Expand Down Expand Up @@ -195,13 +193,16 @@ const onClickSubmit = async () => {
if (props.mode === 'new') {
await _registRepository().then(() => {
emit('get-repository-list')
setInit()
})
}
else
else {
await _updateRepository().then(() => {
emit('get-repository-list')
setInit()
})
setInit()
}
}
/**
Expand All @@ -228,17 +229,6 @@ const _updateRepository = async () => {
toast.error('등록 할 수 없습니다.')
}
const handleModalClose = () => {
repositoryFormData.value.name = ''
repositoryFormData.value.format = 'raw'
repositoryFormData.value.type = 'hosted'
repositoryFormData.value.url = ''
repositoryFormData.value.online = true
httpPort.value = 0
httpsPort.value = 0
writePolicy.value = "allow"
}
</script>

<!-- <style scoped>
Expand Down

0 comments on commit deaecf0

Please sign in to comment.