Skip to content

Add special alert for throttled requests - #11677

Merged
Gargron merged 2 commits into
mastodon:masterfrom
ClearlyClaire:features/ui-show-throttled
Aug 27, 2019
Merged

Gargron merged 2 commits into
mastodon:masterfrom
ClearlyClaire:features/ui-show-throttled

Conversation

@ClearlyClaire

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread app/javascript/mastodon/actions/alerts.js Outdated
@ClearlyClaire
ClearlyClaire force-pushed the features/ui-show-throttled branch from c0d538b to 3c827ca Compare August 27, 2019 08:51
};

export function showAlert(title = messages.unexpectedTitle, message = messages.unexpectedMessage) {
export function showAlert(title = messages.unexpectedTitle, message = messages.unexpectedMessage, message_values = undefined) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is really no need for a default value if the default value is undefined, JavaScript doesn't care how many arguments you pass into a function, if you pass fewer the other ones are undefined.

@Gargron
Gargron merged commit 81f864d into mastodon:master Aug 27, 2019
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
* Add special alert for throttled requests

* Use an extra attribute instead of an array
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