diff --git a/server/migrations/2019-06-01-222649_remove_admin/down.sql b/server/migrations/2019-06-01-222649_remove_admin/down.sql new file mode 100644 index 000000000..6178857fa --- /dev/null +++ b/server/migrations/2019-06-01-222649_remove_admin/down.sql @@ -0,0 +1 @@ +insert into user_ (name, fedi_name, password_encrypted) values ('admin', 'TBD', 'TBD'); diff --git a/server/migrations/2019-06-01-222649_remove_admin/up.sql b/server/migrations/2019-06-01-222649_remove_admin/up.sql new file mode 100644 index 000000000..7cec88705 --- /dev/null +++ b/server/migrations/2019-06-01-222649_remove_admin/up.sql @@ -0,0 +1 @@ +delete from user_ where name like 'admin'; diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index ac43b1d9f..153c9f727 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -71,6 +71,7 @@ export class Main extends Component { 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)))) diff --git a/ui/src/components/sidebar.tsx b/ui/src/components/sidebar.tsx index 6532bc050..d36d962c1 100644 --- a/ui/src/components/sidebar.tsx +++ b/ui/src/components/sidebar.tsx @@ -115,8 +115,8 @@ export class Sidebar extends Component {
  • {mod.user_name}
  • )} - Create a Post + Create a Post
    {community.subscribed ?