diff --git a/src/components/button/Button.vue b/src/components/button/Button.vue index 2d087e276a9c9..5ef52ccf4309b 100644 --- a/src/components/button/Button.vue +++ b/src/components/button/Button.vue @@ -35,7 +35,7 @@ const cls = computed(() => { diff --git a/src/components/empty/Empty.vue b/src/components/empty/Empty.vue index 27367b593e60a..dcbc172ae7f37 100644 --- a/src/components/empty/Empty.vue +++ b/src/components/empty/Empty.vue @@ -1,3 +1,19 @@ + + - - diff --git a/src/components/filter/FilterSelect.vue b/src/components/filter/FilterSelect.vue index cb09c2d2bff64..50d10c8201066 100644 --- a/src/components/filter/FilterSelect.vue +++ b/src/components/filter/FilterSelect.vue @@ -1,3 +1,54 @@ + + - - diff --git a/src/components/git/CreateGitBranchDialog.vue b/src/components/git/CreateGitBranchDialog.vue index 968b2a79c5ab8..dd2f84b3251e2 100644 --- a/src/components/git/CreateGitBranchDialog.vue +++ b/src/components/git/CreateGitBranchDialog.vue @@ -14,7 +14,7 @@ const store = useStore(); const { git: state } = store.state as RootStoreState; const { activeId, - gitCurrentBranch, + currentBranch, gitRemoteBranches, gitLocalBranchesDict, gitRemoteBranchesDict, @@ -28,7 +28,7 @@ const filteredRemoteBranches = computed(() => gitRemoteBranches.value?.filter(branch => { if (!branch.hash) return; const localBranch = gitLocalBranchesDict.value[branch.hash]; - return !localBranch || localBranch.name !== gitCurrentBranch.value; + return !localBranch || localBranch.name !== currentBranch.value; }) ); @@ -56,7 +56,7 @@ const onConfirm = async () => { confirmLoading.value = true; try { const { localBranch, remoteBranch } = form.value; - await store.dispatch(`${ns}/gitCheckoutBranch`, { + await store.dispatch(`${ns}/checkoutBranch`, { id: activeId.value, localBranch, remoteBranch, diff --git a/src/components/git/GitBranchSelect.vue b/src/components/git/GitBranchSelect.vue index 97bd8275b8f95..e27b70c97392a 100644 --- a/src/components/git/GitBranchSelect.vue +++ b/src/components/git/GitBranchSelect.vue @@ -1,6 +1,5 @@ diff --git a/src/components/git/GitForm.vue b/src/components/git/GitForm.vue index 85d6f01a53c0e..d022898184bd0 100644 --- a/src/components/git/GitForm.vue +++ b/src/components/git/GitForm.vue @@ -1,3 +1,82 @@ + + - - diff --git a/src/components/git/GitStatus.vue b/src/components/git/GitStatus.vue index 576b7340fb948..1cc65af41a4ef 100644 --- a/src/components/git/GitStatus.vue +++ b/src/components/git/GitStatus.vue @@ -18,7 +18,8 @@ const props = defineProps<{ }>(); const emit = defineEmits<{ - (e: 'click', _: void): void; + (e: 'click'): void; + (e: 'retry'): void; }>(); const { t } = useI18n(); @@ -26,7 +27,7 @@ const { t } = useI18n(); const ns = 'git'; const store = useStore(); -const data = computed(() => { +const data = computed(() => { const { status, error } = props; switch (status) { case GIT_STATUS_PENDING: @@ -72,7 +73,7 @@ const data = computed(() => { const onRetry = async () => { const { id } = props; await store.dispatch(`${ns}/cloneGit`, { id }); - await store.dispatch(`${ns}/getById`, id); + emit('retry'); }; diff --git a/src/components/index.ts b/src/components/index.ts index aafdef280626b..f593402bdefba 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -50,6 +50,7 @@ import FormItem from './form/FormItem.vue'; import FormReadonlyValue from './form/FormReadonlyValue.vue'; import FormTable from './form/FormTable.vue'; import FormTableField from './form/FormTableField.vue'; +import CreateEditGitDialog from './git/CreateEditGitDialog.vue'; import CreateGitBranchDialog from './git/CreateGitBranchDialog.vue'; import GitBranchSelect from './git/GitBranchSelect.vue'; import GitFileStatus from './git/GitFileStatus.vue'; @@ -199,6 +200,7 @@ export { FormReadonlyValue as ClFormReadonlyValue, FormTable as ClFormTable, FormTableField as ClFormTableField, + CreateEditGitDialog as ClCreateEditGitDialog, CreateGitBranchDialog as ClCreateGitBranchDialog, GitBranchSelect as ClGitBranchSelect, GitFileStatus as ClGitFileStatus, diff --git a/src/components/table/Table.vue b/src/components/table/Table.vue index 213f363aef97e..e7b08a688aa95 100644 --- a/src/components/table/Table.vue +++ b/src/components/table/Table.vue @@ -1,3 +1,95 @@ + +