Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for core PR; add cancel split button #47

Merged
merged 7 commits into from
Jul 14, 2022
Merged

Conversation

davwheat
Copy link
Member

@davwheat davwheat commented Jul 12, 2021

Changes proposed in this pull request

  • Bumps dependencies
  • Fixes unneeded Post-footer item when no split in progress (needed for Hide post footer when empty flarum/framework#2926)
  • Add new global app property called __fof_split, which contains info about any active split
  • Move SplitController instance to app.__fof_split
  • Replace calls to $.show() on the split to button, set app.__fof_split.splitting to true and trigger redraw
  • Add new "Cancel split" button which resets the SplitController

Reviewers should focus on

I feel like this is slightly hacky, but I honestly couldn't think of a better way to do it.

Screenshot

Ignore the 0 in the video below. It's from a local change to core.

fDSgLq4hOs.mp4

Confirmed**

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run composer test).

@davwheat davwheat requested a review from imorland July 12, 2021 23:20
@davwheat davwheat self-assigned this Jul 12, 2021
Copy link
Member

@imorland imorland left a comment

Choose a reason for hiding this comment

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

omg, how did this go unnoticed for so long 🙈

LGTM (after a rebase, ofc!)

@davwheat davwheat force-pushed the dw/fixes-and-cancel-btn branch 2 times, most recently from 15bedb2 to aedf9db Compare July 14, 2022 13:19
@davwheat davwheat merged commit 4e68a54 into master Jul 14, 2022
@davwheat davwheat deleted the dw/fixes-and-cancel-btn branch July 14, 2022 13:40
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.

2 participants