diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-10-12 04:04:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-12 04:04:08 +0200 |
commit | 9d4541c612b506889675c4c19ced5cd17ad3710f (patch) | |
tree | 1b2944fe0ae4f40e68701d5c3b27753c4bc16b5b /app/javascript | |
parent | 22de24b8ca707d8eac26eab6615377a290ff1f4e (diff) |
Display customized mascot in web UI and fix admin form for it (#8964)
Follow-up to #8766
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/features/compose/index.js | 3 | ||||
-rw-r--r-- | app/javascript/mastodon/initial_state.js | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/compose/index.js b/app/javascript/mastodon/features/compose/index.js index cf1714b71..d76cd76e6 100644 --- a/app/javascript/mastodon/features/compose/index.js +++ b/app/javascript/mastodon/features/compose/index.js @@ -13,6 +13,7 @@ import spring from 'react-motion/lib/spring'; import SearchResultsContainer from './containers/search_results_container'; import { changeComposing } from '../../actions/compose'; import elephantUIPlane from '../../../images/elephant_ui_plane.svg'; +import { mascot } from '../../initial_state'; const messages = defineMessages({ start: { id: 'getting_started.heading', defaultMessage: 'Getting started' }, @@ -107,7 +108,7 @@ class Compose extends React.PureComponent { <ComposeFormContainer /> {multiColumn && ( <div className='drawer__inner__mastodon'> - <img alt='' draggable='false' src={elephantUIPlane} /> + <img alt='' draggable='false' src={mascot || elephantUIPlane} /> </div> )} </div>} diff --git a/app/javascript/mastodon/initial_state.js b/app/javascript/mastodon/initial_state.js index 262c93195..6e9e3ddd8 100644 --- a/app/javascript/mastodon/initial_state.js +++ b/app/javascript/mastodon/initial_state.js @@ -14,5 +14,6 @@ export const me = getMeta('me'); export const searchEnabled = getMeta('search_enabled'); export const invitesEnabled = getMeta('invites_enabled'); export const version = getMeta('version'); +export const mascot = getMeta('mascot'); export default initialState; |