]> cat aescling's git repositories - mastodon.git/commitdiff
Fix list not being automatically unpinned when it returns 404 in web UI (#11045)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 11 Jun 2019 00:26:37 +0000 (02:26 +0200)
committerGitHub <noreply@github.com>
Tue, 11 Jun 2019 00:26:37 +0000 (02:26 +0200)
app/javascript/mastodon/actions/alerts.js
app/javascript/styles/mastodon/components.scss

index b2c7ab76aad66434765804dd3f7ccffc1b4e6707..ef2500e7bdd84fb6a3cd353991a07ae1371f5bd7 100644 (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;
index 1093bf54fcc48b45096f3094fabe7cd936976b99..8ea9d69056812d00864a30b84e2fe8f5b3348079 100644 (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;
 }