mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-10-15 09:13:16 +01:00
Mention all import sources and warn about billable data not being imported on free plan
This commit is contained in:
@@ -5,7 +5,12 @@ import { useNotificationsStore } from '@/utils/notification';
|
|||||||
import { api } from '@/packages/api/src';
|
import { api } from '@/packages/api/src';
|
||||||
import { Field, FieldLabel } from '@/packages/ui/src/field';
|
import { Field, FieldLabel } from '@/packages/ui/src/field';
|
||||||
import { DocumentIcon } from '@heroicons/vue/24/solid';
|
import { DocumentIcon } from '@heroicons/vue/24/solid';
|
||||||
import { ArrowDownOnSquareIcon, InformationCircleIcon } from '@heroicons/vue/24/outline';
|
import {
|
||||||
|
ArrowDownOnSquareIcon,
|
||||||
|
ExclamationTriangleIcon,
|
||||||
|
InformationCircleIcon,
|
||||||
|
} from '@heroicons/vue/24/outline';
|
||||||
|
import { canUseBillableRates } from '@/utils/billing';
|
||||||
|
|
||||||
import { getCurrentOrganizationId } from '@/utils/useUser';
|
import { getCurrentOrganizationId } from '@/utils/useUser';
|
||||||
import type { ImportReport, ImportType } from '@/packages/api/src';
|
import type { ImportReport, ImportType } from '@/packages/api/src';
|
||||||
@@ -21,6 +26,8 @@ const { addNotification } = useNotificationsStore();
|
|||||||
|
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
|
|
||||||
|
const billableRatesLocked = computed(() => !canUseBillableRates());
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
const organizationId = getCurrentOrganizationId();
|
const organizationId = getCurrentOrganizationId();
|
||||||
if (organizationId) {
|
if (organizationId) {
|
||||||
@@ -155,8 +162,19 @@ const showResultModal = ref(false);
|
|||||||
<div class="py-2 px-3 sm:px-4 text-sm flex items-center space-x-3">
|
<div class="py-2 px-3 sm:px-4 text-sm flex items-center space-x-3">
|
||||||
<InformationCircleIcon class="h-5 min-w-0 w-5 text-bg-tertiary" />
|
<InformationCircleIcon class="h-5 min-w-0 w-5 text-bg-tertiary" />
|
||||||
<p class="flex-1">
|
<p class="flex-1">
|
||||||
Import existing data from Toggl, Clockify or a different solidtime instance.
|
Import existing data from Toggl, Clockify, Harvest, generic CSV files or a
|
||||||
Please select the type of data you want to import and follow the instructions.
|
different solidtime instance. Please select the type of data you want to import
|
||||||
|
and follow the instructions.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
v-if="billableRatesLocked"
|
||||||
|
class="py-2 px-3 sm:px-4 text-sm flex items-center space-x-3 border-t border-card-background-separator">
|
||||||
|
<ExclamationTriangleIcon class="h-5 min-w-0 w-5 text-yellow-500" />
|
||||||
|
<p class="flex-1">
|
||||||
|
Billable rates and billable status will not be imported, since they are not
|
||||||
|
available in the free plan. All projects and time entries will be imported as
|
||||||
|
non-billable.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user