Skip to content

fix: hide invitation reply buttons on cancelled event - #8886

Merged
SebastianKrupinski merged 1 commit into
nextcloud:mainfrom
madbob:issue_4420
Sep 8, 2026
Merged

fix: hide invitation reply buttons on cancelled event#8886
SebastianKrupinski merged 1 commit into
nextcloud:mainfrom
madbob:issue_4420

Conversation

@madbob

@madbob madbob commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Do not include InvitationResponseButtons if the event has been cancelled, and add a "This event was cancelled" notice also in EditFull (copied from EditSimple).

Note: changes to the close button for mobile were required to properly accomodate the textual notice.

Fixes #4420

@SebastianKrupinski SebastianKrupinski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @madbob

Thanks for the PR, but there are a couple of issues with it

Comment thread src/views/EditFull.vue Outdated
Comment thread src/views/EditFull.vue Outdated
Comment on lines +797 to +806
visibility: visible;
display: flex;
justify-content: flex-start;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems unrealted

Comment thread src/views/EditFull.vue Outdated
Comment on lines +885 to +895
display: flex;
justify-content: flex-start;
visibility: hidden;
display: none;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes also seem unrelated

Comment thread src/views/EditSimple.vue
@madbob
madbob force-pushed the issue_4420 branch 3 times, most recently from 2cdee74 to 7d7dd5a Compare September 8, 2026 14:54
@SebastianKrupinski

Copy link
Copy Markdown
Contributor

@madbob I see you addressed the editor mixins' but why do we need the css changes?

@madbob

madbob commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

The reasons of CSS changes lies in

.app-full__header__top__first {
  flex-direction: column;
}

added to apply a vertical layout to the header (and have the "event cancelled" notice below the title).

Keeping visibility: hidden to the "Close" button, it still occupies space in the page (even if invisible) and this alters the alignment of the whole block with the block aside (the one with Save/Update buttons).

Screenshot From 2026-09-08 17-12-16

Changing it to display: none the "Close" button doesn't allocate space when hidden.

@codecov

codecov Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/mixins/EditorMixin.js 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@SebastianKrupinski

Copy link
Copy Markdown
Contributor

The reasons of CSS changes lies in

.app-full__header__top__first {
  flex-direction: column;
}

Hard to see what you are trying to address without context

Before CSS:

image

After CSS:

image

@SebastianKrupinski

Copy link
Copy Markdown
Contributor

@madbob

I am not crazy about the design choice, the wording is in the wrong place and not very visible.

Lets keep the PR to "fix: hide invitation reply buttons on cancelled event" and you can make another PR to "feat: indicate cancelled event" because we'll need to get design involved for those changes.

@madbob

madbob commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Ok.

I just want to point out that EditSimple has not been changed (I've moved the definition of isCancelled, but nothing in contents nor in CSS. Including the "This event was cancelled" notice, which was already there), all visual changes are in EditFull.

Here a more complete comparison screenshot (I had to provide it before... :-\ ).

sample

Signed-off-by: Roberto Guido <info@madbob.org>
@SebastianKrupinski

Copy link
Copy Markdown
Contributor

Ok.

I just want to point out that EditSimple has not been changed (I've moved the definition of isCancelled, but nothing in contents nor in CSS. Including the "This event was cancelled" notice, which was already there), all visual changes are in EditFull.

Well that is interesting because the screen captures where with and without your code.

@SebastianKrupinski

Copy link
Copy Markdown
Contributor

/backport to stable6.6

@backportbot backportbot Bot added the backport-request A backport was requested for this pull request label Sep 8, 2026
@SebastianKrupinski

Copy link
Copy Markdown
Contributor

/backport to stable6.5

@SebastianKrupinski
SebastianKrupinski merged commit 07399f2 into nextcloud:main Sep 8, 2026
31 of 32 checks passed
@backportbot backportbot Bot removed the backport-request A backport was requested for this pull request label Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't display PARTSTAT buttons when an event has STATUS=CANCELLED

2 participants