Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion resources/js/Components/Common/Reporting/ReportingOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,19 @@ async function createTag(tag: string) {
}

const reportProperties = computed(() => {
const { billable, ...rest } = getFilterAttributes();

let billableValue: boolean | null = null;
// if billable is null keep it if it is 'true' or 'false' convert it to boolean
if (billable === 'true') {
billableValue = true;
} else if (billable === 'false') {
billableValue = false;
}

return {
...getFilterAttributes(),
...rest,
billable: billableValue,
group: group.value,
sub_group: subGroup.value,
history_group: getOptimalGroupingOption(startDate.value, endDate.value),
Expand Down
2 changes: 1 addition & 1 deletion resources/js/packages/ui/src/LoadingSpinner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const props = defineProps<{

<template>
<svg
:class="twMerge('animate-spin -ml-1 mr-3 h-5 w-5 text-text-primary', props.class)"
:class="twMerge('animate-spin -ml-1 mr-3 h-4 w-4 text-text-primary', props.class)"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ function closeAndFocusInput() {
data-testid="time_entry_time"
class="w-[110px] lg:w-[130px] h-full text-text-primary py-2.5 rounded-lg border-border-secondary border text-center px-4 text-base lg:text-lg font-semibold bg-card-background border-none placeholder-muted focus:ring-0 transition"
type="text"
autocomplete="off"
name="time_duration_input"
@focus="pauseLiveTimerUpdate"
@focusin="openModalOnTab"
@keydown.exact.tab="focusNextElement"
Expand Down
Loading