diff --git a/apps/web/src/services/cost-explorer/components/DataSourceManagementTabDataCollectionHistoryModal.vue b/apps/web/src/services/cost-explorer/components/DataSourceManagementTabDataCollectionHistoryModal.vue index bf87b38060..524a47cc1d 100644 --- a/apps/web/src/services/cost-explorer/components/DataSourceManagementTabDataCollectionHistoryModal.vue +++ b/apps/web/src/services/cost-explorer/components/DataSourceManagementTabDataCollectionHistoryModal.vue @@ -8,7 +8,6 @@ import { PButtonModal, PTextEditor, PFieldTitle, PToggleButton, PTextInput, PDatetimePicker, PScopedNotification, } from '@cloudforet/mirinae'; -import { store } from '@/store'; import { i18n } from '@/translations'; import { useProxyValue } from '@/common/composables/proxy-state'; @@ -43,7 +42,6 @@ const emit = defineEmits<{(e: 'update:modal-visible'): void, const storeState = reactive({ selectedDataSourceItem: computed(() => dataSourcesPageGetters.selectedDataSourceItem), jobList: computed(() => dataSourcesPageGetters.jobList), - timezone: computed(() => store.state.user.timezone), }); const state = reactive({ proxyVisible: useProxyValue('modalVisible', props, emit), @@ -80,12 +78,6 @@ const state = reactive({ } return false; }), - diffInMinutes: computed(() => { - const recentJobItem = storeState.jobList.filter((i) => i.status === 'IN_PROGRESS')[0]; - const createdDate = dayjs.tz(recentJobItem.created_at, storeState.timezone); - const now = dayjs().tz(storeState.timezone); - return now.diff(createdDate, 'minute'); - }), hasInProgressItem: computed(() => storeState.jobList.some((item) => item.status === 'IN_PROGRESS')), }); @@ -108,7 +100,7 @@ const handleConfirmButton = async () => { case 'RE-SYNC': case 'RESTART': - if (state.hasInProgressItem && state.diffInMinutes <= 10) return; + if (state.hasInProgressItem) return; await dataSourcesPageStore.fetchSyncDatasource({ start: state.toggleValue ? undefined : dayjs(state.startDates[0]).format('YYYY-MM'), data_source_id: storeState.selectedDataSourceItem.data_source_id, @@ -143,7 +135,7 @@ const handleConfirmButton = async () => { backdrop :loading="state.loading" :disabled="state.modalValidation" - :hide-footer-close-button="props.modalType === 'RESTART' && state.hasInProgressItem && state.diffInMinutes <= 10" + :hide-footer-close-button="(props.modalType === 'RESTART' && state.hasInProgressItem) || props.modalType === 'ERROR'" :theme-color="props.modalType === 'CANCEL' || props.modalType === 'RESTART' ? 'alert' : 'primary'" :visible.sync="state.proxyVisible" class="data-source-management-tab-data-collection-history-modal" @@ -164,13 +156,7 @@ const handleConfirmButton = async () => {
-
- {{ $t('BILLING.COST_MANAGEMENT.DATA_SOURCES.RESTART_MODAL_DESC_1') }} -

{{ $t('BILLING.COST_MANAGEMENT.DATA_SOURCES.RESTART_MODAL_DESC_2') }}

-
-
-

{{ $t('BILLING.COST_MANAGEMENT.DATA_SOURCES.RESTART_MODAL_CANCEL_DESC') }}

-
+

{{ $t('BILLING.COST_MANAGEMENT.DATA_SOURCES.RESTART_MODAL_CANCEL_DESC') }}

@@ -234,8 +220,7 @@ const handleConfirmButton = async () => { {{ $t('BILLING.COST_MANAGEMENT.DATA_SOURCES.ERROR_FOUND_OK') }} {{ $t('BILLING.COST_MANAGEMENT.DATA_SOURCES.CANCEL_BUTTON') }} {{ $t('BILLING.COST_MANAGEMENT.DATA_SOURCES.RESTART_MODAL_BUTTON') }} diff --git a/apps/web/src/services/workspace-home/components/WorkspaceInfo.vue b/apps/web/src/services/workspace-home/components/WorkspaceInfo.vue index 887631220f..b932efa92b 100644 --- a/apps/web/src/services/workspace-home/components/WorkspaceInfo.vue +++ b/apps/web/src/services/workspace-home/components/WorkspaceInfo.vue @@ -238,6 +238,13 @@ const routerToWorkspaceUser = (isOpenModal: boolean) => { } } + /* custom design-system component - p-heading-layout */ + :deep(.p-heading-layout) { + .extra-container { + margin-top: 0; + } + } + @screen mobile { .invite-user-button, .create-app-button { @apply hidden;