From 04ed6e0e2529689e4a820a7a55f3a2aee387bfb3 Mon Sep 17 00:00:00 2001 From: Artyom Grigorovich Date: Fri, 22 Apr 2022 13:13:57 +0700 Subject: [PATCH] Tracker: View options - Completed issues period, empty groups display (#1490) Signed-off-by: Artyom Grigorovich --- packages/ui/src/components/MiniToggle.svelte | 44 ++++++---- .../components/calendar/internal/DateUtils.ts | 8 +- plugins/tracker-assets/lang/en.json | 7 +- .../src/components/issues/Active.svelte | 5 +- .../src/components/issues/Backlog.svelte | 11 ++- .../issues/CategoryPresenter.svelte | 9 +- .../src/components/issues/Issues.svelte | 83 +++++++++++++++---- .../components/issues/ViewOptionsPopup.svelte | 43 ++++++++-- plugins/tracker-resources/src/plugin.ts | 5 ++ plugins/tracker-resources/src/utils.ts | 33 +++++++- plugins/tracker/src/index.ts | 9 ++ 11 files changed, 205 insertions(+), 52 deletions(-) diff --git a/packages/ui/src/components/MiniToggle.svelte b/packages/ui/src/components/MiniToggle.svelte index bd39bca980..285d0e12c6 100644 --- a/packages/ui/src/components/MiniToggle.svelte +++ b/packages/ui/src/components/MiniToggle.svelte @@ -12,21 +12,29 @@ // See the License for the specific language governing permissions and // limitations under the License. --> -
- { on = !on }}> + {#if label} + { + on = !on + }} + > + + {/if}