From a7d9687b156cb6fdf07b67b3f6f3e71d0fd97dd5 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 18 Jul 2023 12:29:04 +0200 Subject: [PATCH 1/3] feat(NcButton): Add `pressed` state for stateful buttons, like the `NcAppSidebar` star button Signed-off-by: Ferdinand Thiessen --- src/components/NcAppSidebar/NcAppSidebar.vue | 9 +- src/components/NcButton/NcButton.vue | 101 +++++++++++++++++- tests/unit/components/NcButton/button.spec.js | 45 ++++++++ 3 files changed, 153 insertions(+), 2 deletions(-) create mode 100644 tests/unit/components/NcButton/button.spec.js diff --git a/src/components/NcAppSidebar/NcAppSidebar.vue b/src/components/NcAppSidebar/NcAppSidebar.vue index c2d9cbe9eb..075d7f4715 100644 --- a/src/components/NcAppSidebar/NcAppSidebar.vue +++ b/src/components/NcAppSidebar/NcAppSidebar.vue @@ -32,6 +32,7 @@ include a standard-header like it's used by the files app. ```vue