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

Add favorite format feature #1927

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

Add favorite format feature #1927

wants to merge 9 commits into from

Conversation

Spandamn
Copy link
Contributor

image
Suggestion taken from here

this.add('That format does not exist.');
return false;
}
if (!localStorage.getItem('favoriteFormats')) {
Copy link
Member

Choose a reason for hiding this comment

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

Use Storage.prefs('favoriteformat') instead of localStorage.getItem.

js/client-chat.js Outdated Show resolved Hide resolved
js/client-chat.js Outdated Show resolved Hide resolved
js/client-chat.js Outdated Show resolved Hide resolved
js/client-mainmenu.js Outdated Show resolved Hide resolved
Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
@Spandamn
Copy link
Contributor Author

image
Updating with buttons n stuff

js/client-chat.js Outdated Show resolved Hide resolved
}
buf += '<button class="button" name="parseCommand" value="/favoriteformat list">(Back to List)</button>';
buf += '</div>';
this.add('|uhtmlchange|favformat|' + buf);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
this.add('|uhtmlchange|favformat|' + buf);
this.add('|uhtmlchange|favformat|' + buf);

Probably would be easier to use popups - otherwise, how does the UHTML work when they aren't in a room?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, yeah, popups do sound better

js/client-chat.js Outdated Show resolved Hide resolved
js/client-mainmenu.js Outdated Show resolved Hide resolved
Spandamn and others added 3 commits January 27, 2022 23:46
Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
@AnnikaCodes AnnikaCodes marked this pull request as draft July 25, 2022 05:24
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.

None yet

3 participants