[Glitch] Add server banner to web app
Port d2528b26b6
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@ -4,6 +4,7 @@ import SearchContainer from 'flavours/glitch/features/compose/containers/search_
|
||||
import ComposeFormContainer from 'flavours/glitch/features/compose/containers/compose_form_container';
|
||||
import NavigationContainer from 'flavours/glitch/features/compose/containers/navigation_container';
|
||||
import LinkFooter from './link_footer';
|
||||
import ServerBanner from 'flavours/glitch/components/server_banner';
|
||||
|
||||
export default
|
||||
class ComposePanel extends React.PureComponent {
|
||||
@ -21,6 +22,7 @@ class ComposePanel extends React.PureComponent {
|
||||
|
||||
{!signedIn && (
|
||||
<React.Fragment>
|
||||
<ServerBanner />
|
||||
<div className='flex-spacer' />
|
||||
</React.Fragment>
|
||||
)}
|
||||
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { submitReport } from 'flavours/glitch/actions/reports';
|
||||
import { expandAccountTimeline } from 'flavours/glitch/actions/timelines';
|
||||
import { fetchRules } from 'flavours/glitch/actions/rules';
|
||||
import { fetchServer } from 'flavours/glitch/actions/server';
|
||||
import { fetchRelationships } from 'flavours/glitch/actions/accounts';
|
||||
import PropTypes from 'prop-types';
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
@ -119,7 +119,7 @@ class ReportModal extends ImmutablePureComponent {
|
||||
|
||||
dispatch(fetchRelationships([accountId]));
|
||||
dispatch(expandAccountTimeline(accountId, { withReplies: true }));
|
||||
dispatch(fetchRules());
|
||||
dispatch(fetchServer());
|
||||
}
|
||||
|
||||
render () {
|
||||
|
Reference in New Issue
Block a user