mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 04:02:15 +01:00
Enable npm workspaces and update dependencies
This commit is contained in:
@@ -29,7 +29,7 @@ const photoInput = ref<HTMLInputElement | null>(null);
|
||||
|
||||
const updateProfileInformation = () => {
|
||||
if (photoInput.value && photoInput.value.files && photoInput.value.files?.length > 0) {
|
||||
form.photo = photoInput.value?.files[0];
|
||||
form.photo = photoInput.value?.files[0] ?? null;
|
||||
}
|
||||
|
||||
form.post(route('user-profile-information.update'), {
|
||||
|
||||
@@ -137,7 +137,7 @@ const showBillableRate = computed(() => {
|
||||
<ProjectCreateModal
|
||||
v-model:show="showCreateProjectModal"
|
||||
:create-project
|
||||
:enable-estimated-time="isAllowedToPerformPremiumAction"
|
||||
:enable-estimated-time="isAllowedToPerformPremiumAction()"
|
||||
:create-client
|
||||
:currency="getOrganizationCurrencyString()"
|
||||
:clients="clients"
|
||||
|
||||
@@ -37,7 +37,7 @@ onMounted(() => {
|
||||
const currentUrl = window.location.href;
|
||||
// check if # exists exactly once in the URL
|
||||
if (currentUrl.split('#').length === 2) {
|
||||
sharedSecret.value = currentUrl.split('#')[1];
|
||||
sharedSecret.value = currentUrl.split('#')[1] ?? null;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -124,9 +124,10 @@ const groupedPieChartData = computed(() => {
|
||||
if (entry.description === null) {
|
||||
return {
|
||||
value: entry.seconds,
|
||||
name: emptyPlaceholder[
|
||||
aggregatedTableTimeEntries.value?.grouped_type ?? 'project'
|
||||
],
|
||||
name:
|
||||
emptyPlaceholder[
|
||||
aggregatedTableTimeEntries.value?.grouped_type ?? 'project'
|
||||
] ?? '',
|
||||
color: '#CCCCCC',
|
||||
};
|
||||
}
|
||||
@@ -146,14 +147,17 @@ const tableData = computed(() => {
|
||||
cost: entry.cost,
|
||||
description:
|
||||
entry.description ??
|
||||
emptyPlaceholder[aggregatedTableTimeEntries.value?.grouped_type ?? 'project'],
|
||||
emptyPlaceholder[aggregatedTableTimeEntries.value?.grouped_type ?? 'project'] ??
|
||||
'',
|
||||
grouped_data:
|
||||
entry.grouped_data?.map((el) => {
|
||||
return {
|
||||
seconds: el.seconds,
|
||||
cost: el.cost,
|
||||
description:
|
||||
el.description ?? emptyPlaceholder[entry.grouped_type ?? 'project'],
|
||||
el.description ??
|
||||
emptyPlaceholder[entry.grouped_type ?? 'project'] ??
|
||||
'',
|
||||
};
|
||||
}) ?? [],
|
||||
};
|
||||
|
||||
@@ -46,8 +46,8 @@ async function importData() {
|
||||
addNotification('error', 'Please select the CSV or ZIP file that you want to import');
|
||||
return;
|
||||
}
|
||||
const rawBase64String = await toBase64(files.value[0]);
|
||||
const base64String = rawBase64String.split(';')[1].replace('base64,', '') as string;
|
||||
const rawBase64String = await toBase64(files.value[0]!);
|
||||
const base64String = rawBase64String.split(';')[1]!.replace('base64,', '') as string;
|
||||
const organizationId = getCurrentOrganizationId();
|
||||
if (organizationId !== null) {
|
||||
const { handleApiRequestNotifications } = useNotificationsStore();
|
||||
|
||||
Reference in New Issue
Block a user