From 0459b4c5689881b189d28c7c16d2c5bf36ed013f Mon Sep 17 00:00:00 2001 From: youngbeom-shin Date: Thu, 5 Dec 2024 10:50:37 +0800 Subject: [PATCH] style(collections): standardize button styles and spacing --- .../collections/AddToCollections.vue | 24 +++++++++---------- .../collections/CollectionsAddRepo.vue | 16 ++++++------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/frontend/src/components/collections/AddToCollections.vue b/frontend/src/components/collections/AddToCollections.vue index 999cf5e2e..d2f5436ef 100644 --- a/frontend/src/components/collections/AddToCollections.vue +++ b/frontend/src/components/collections/AddToCollections.vue @@ -23,7 +23,7 @@
-
+
-
-

+

+

{{ $t('collections.edit.addCollection') }}

{{ $t('all.cancel') }}
{{ $t('all.confirm') }} @@ -93,22 +93,22 @@ const dialogVisible = ref(false) const collectionsList = ref([]) const collectionsIdsInput = ref('') - const isLogged =ref(false) + const isLogged = ref(false) const fetchCollectionsList = async () => { const url = `/user/${userStore.username}/collections` const { data, error } = await useFetchApi(url).json() const json = data.value if (json) { collectionsList.value = json.data - }else{ + } else { ElMessage({ message: error.value.msg, type: 'warning' }) } } const openAddCollections = () => { - if(isLogged.value){ + if(isLogged.value) { dialogVisible.value = true - }else{ + } else { window.location.href = '/login' } } @@ -133,14 +133,14 @@ const options = { body: JSON.stringify(addRepoData) } const url = `/collections/${collectionsIdsInput.value}/repos` const { data, error } = await useFetchApi(url, options).post().json() - if(data.value){ + if(data.value) { dialogVisible.value = false ElMessage({ message: t('all.addSuccess'), type: 'success' }) collectionsIdsInput.value = '' - }else{ + } else{ ElMessage({ message: error.value.msg, type: 'warning' }) } } diff --git a/frontend/src/components/collections/CollectionsAddRepo.vue b/frontend/src/components/collections/CollectionsAddRepo.vue index a1af9b9ef..e893694dc 100644 --- a/frontend/src/components/collections/CollectionsAddRepo.vue +++ b/frontend/src/components/collections/CollectionsAddRepo.vue @@ -3,7 +3,7 @@
{{ $t('collections.edit.add') }} @@ -18,7 +18,7 @@
-
+
-
-

+

+

{{ $t('collections.edit.type') }}

-

+

{{ $t('collections.edit.name') }}

{{ $t('all.cancel') }}
{{ $t('all.confirm') }}