File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed
modules/project/components/shared Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 11<template >
22 <lfx-maintain-height class =" sticky top-14 lg:top-17 z-10" >
3- <div class =" bg-white outline outline-neutral-200" >
3+ <div class =" bg-white outline outline-1 outline- neutral-200" >
44 <section class =" container" >
55 <div
66 v-if =" props.project"
Original file line number Diff line number Diff line change 1414 selection-mode =" range"
1515 :manual-input =" false"
1616 :number-of-months =" 2"
17+ :max-date =" new Date()"
1718 />
1819 </div >
1920 <div class =" flex justify-end gap-4 pt-6" >
2728 :disabled =" !dateRange || !dateRange[0] || !dateRange[1]"
2829 @click =" select()"
2930 >
30- Confirm
31+ Apply
3132 </lfx-button >
3233 </div >
3334 </div >
Original file line number Diff line number Diff line change 11<template >
22 <div >
33 <!-- Tabs -->
4- <div class =" p-3 hidden sm:block" >
4+ <div
5+ v-if =" !noResult"
6+ class =" p-3 hidden sm:block"
7+ >
58 <lfx-tabs
69 v-model =" tab"
710 :tabs =" tabs"
133136
134137 <!-- No results -->
135138 <section
136- v-if =" tab === 'all' && props.projects.length === 0
137- && props.repositories.length === 0 && props.collections.length === 0"
139+ v-if =" tab === 'all' && noResult"
138140 class =" px-3 py-12 flex flex-col items-center"
139141 >
140142 <lfx-icon
@@ -174,6 +176,8 @@ const repos = computed(() => props.repositories.map((repo) => ({
174176 name: getRepoNameFromUrl (repo .slug ),
175177 })))
176178
179+ const noResult = computed (() => ! props .projects .length && ! props .repositories .length && ! props .collections .length )
180+
177181const tabs = [
178182 {
179183 value: ' all' ,
Original file line number Diff line number Diff line change 7676 @apply bg-brand-500 text-white #{!important } ;
7777 }
7878 }
79+
80+ & -today {
81+ span {
82+ @apply bg-brand- 100;
83+
84+ }
85+ }
7986}
You can’t perform that action at this time.
0 commit comments