Merge branch 'dev'

This commit is contained in:
Dessalines 2019-06-01 15:48:58 -07:00
commit fb82fccd82
4 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1 @@
insert into user_ (name, fedi_name, password_encrypted) values ('admin', 'TBD', 'TBD');

View File

@ -0,0 +1 @@
delete from user_ where name like 'admin';

View File

@ -71,6 +71,7 @@ export class Main extends Component<any, MainState> {
super(props, context);
this.state = this.emptyState;
this.handleEditCancel = this.handleEditCancel.bind(this);
this.subscription = WebSocketService.Instance.subject
.pipe(retryWhen(errors => errors.pipe(delay(3000), take(10))))

View File

@ -115,8 +115,8 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
<li class="list-inline-item"><Link class="text-info" to={`/u/${mod.user_name}`}>{mod.user_name}</Link></li>
)}
</ul>
<Link class="btn btn-sm btn-secondary btn-block mb-3"
to={`/create_post/c/${community.name}`}>Create a Post</Link>
<Link class={`btn btn-sm btn-secondary btn-block mb-3 ${(community.deleted || community.removed) && 'no-click'}`}
to={`/create_post/c/${community.name}`}>Create a Post</Link>
<div>
{community.subscribed
? <button class="btn btn-sm btn-secondary btn-block mb-3" onClick={linkEvent(community.id, this.handleUnsubscribe)}>Unsubscribe</button>