Browse Source

Fix list not being automatically unpinned when it returns 404 in web UI (#11045)

pull/4/head
Eugen Rochko 4 years ago
committed by GitHub
parent
commit
92b572e2a3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions
  1. +2
    -1
      app/javascript/mastodon/actions/alerts.js
  2. +4
    -0
      app/javascript/styles/mastodon/components.scss

+ 2
- 1
app/javascript/mastodon/actions/alerts.js View File

@ -8,6 +8,7 @@ const messages = defineMessages({
export const ALERT_SHOW = 'ALERT_SHOW';
export const ALERT_DISMISS = 'ALERT_DISMISS';
export const ALERT_CLEAR = 'ALERT_CLEAR';
export const ALERT_NOOP = 'ALERT_NOOP';
export function dismissAlert(alert) {
return {
@ -36,7 +37,7 @@ export function showAlertForError(error) {
if (status === 404 || status === 410) {
// Skip these errors as they are reflected in the UI
return {};
return { type: ALERT_NOOP };
}
let message = statusText;

+ 4
- 0
app/javascript/styles/mastodon/components.scss View File

@ -3075,6 +3075,10 @@ a.status-card.compact:hover {
display: flex;
}
.column-header__links {
margin-bottom: 14px;
}
.column-header__links .text-btn {
margin-right: 10px;
}

Loading…
Cancel
Save