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

[MIRROR] allows to reorder chat tabs & hides delete from main tab #2047

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1042
Original PR: tgstation/tgstation#81455

About The Pull Request

This pull request aims to hide the delete button from the main chat tab as well as to allow reordering of the other chat tabs.
((Not to cause any issues with existing tabs, the variable has to be true, so the hiding of the delete button only takes effect for new players or when someone deleted all tabs once))
grafik
grafik

Why It's Good For The Game

  • I'm not quite sure, why the main tab has the delete button in the first place, after all, it's not like the tab should be removed?
    So, we can just hide the delete button on that tab and keep it always there.
  • Accidentally deleting a chat tab when one has multiple tabs set up requires to change all tabs to the right to regain the previous order, so why not simply allow to reorder all tabs except for the main tab. (The main tab can neither be moved, nor can anything swapped with it)

Changelog

🆑 Kashargul
qol: hides the delete button on the main tab allows to reorder all other chat tabs
/:cl:

)

* allows to reorder chat tabs & hides delete from main tab (#81455)

## About The Pull Request
This pull request aims to hide the delete button from the main chat tab
as well as to allow reordering of the other chat tabs.
((Not to cause any issues with existing tabs, the variable has to be
true, so the hiding of the delete button only takes effect for new
players or when someone deleted all tabs once))

![grafik](https://github.com/tgstation/tgstation/assets/144968721/c1682cef-3e4f-4c4f-8394-bbf1345d4630)

![grafik](https://github.com/tgstation/tgstation/assets/144968721/ffe973a5-24eb-44ed-b8db-e3c1867935d1)
## Why It's Good For The Game
- I'm not quite sure, why the main tab has the delete button in the
first place, after all, it's not like the tab should be removed?
So, we can just hide the delete button on that tab and keep it always
there.
- Accidentally deleting a chat tab when one has multiple tabs set up
requires to change all tabs to the right to regain the previous order,
so why not simply allow to reorder all tabs except for the main tab.
(The main tab can neither be moved, nor can anything swapped with it)
## Changelog
:cl:
qol: hides the delete button on the main tab allows to reorder all other
chat tabs
/:cl:

* allows to reorder chat tabs & hides delete from main tab

---------

Co-authored-by: Kashargul <[email protected]>
@Iajret Iajret merged commit bbbcadf into master Feb 19, 2024
24 checks passed
@Iajret Iajret deleted the upstream-mirror-1042 branch February 19, 2024 17:58
AnywayFarus added a commit that referenced this pull request Feb 19, 2024
Iajret pushed a commit that referenced this pull request Apr 19, 2024
Clocking out opens the job slot
ReezeBL pushed a commit that referenced this pull request Apr 19, 2024
Clocking out opens the job slot

Co-authored-by: FlufflesTheDog <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants