Skip to content

Commit

Permalink
Merge pull request #80 from dmsej108/main
Browse files Browse the repository at this point in the history
create repository issue fixed
  • Loading branch information
hyun357123 authored Oct 14, 2024
2 parents 231b683 + 5accf9e commit b2e0c13
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 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
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<div :id="'accordion_' + catalog.catalogIdx" class="accordion-collapse collapse" :style= "[catalog.isShow ? {display: 'block'} : {display:'none'}]">
<div class="accordion-body pt-0">
<br />
{{ catalog.catalogDescription }}
<div style="white-space: pre-wrap;" v-html="formattedText(catalog.catalogDescription)"></div>
<div>
<br />
<div class="btn-list" style="width:70%;" v-for="wf in catalog.refData.workflow" :key="wf.catalogRefIdx">
Expand Down Expand Up @@ -300,6 +300,7 @@
}
const setDockerHubSearch = async () => {
dockerHubSearchList.value = [];
try {
const response = await axios.get(baseUrl + '/search/dockerhub/' + searchKeyword.value);
Expand All @@ -314,6 +315,7 @@
}
const setArtifactHubSearch = async () => {
artifactHubSearch.value = [];
try {
const response = await axios.get(baseUrl + '/search/artifacthub/' + searchKeyword.value);
for(let i=0; i<3; i++) {
Expand Down Expand Up @@ -382,6 +384,10 @@
const onClickDeploy = (value: string) => {
modalTite.value = value
}
const formattedText = (text:string) => {
return text.replace(/\\n|\n/g, '<br/>');
}
</script>
Expand Down

0 comments on commit b2e0c13

Please sign in to comment.