From 2cbd4c967808f4368429a629d44dee5c921ca643 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 1 Jun 2019 15:12:10 -0700 Subject: [PATCH 1/3] Fix site-form cancel button. - Fixes #164 --- ui/src/components/main.tsx | 1 + 1 file changed, 1 insertion(+) 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)))) From d0b2f982b49673e6ce758734d0ea51edf14751e7 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 1 Jun 2019 15:32:06 -0700 Subject: [PATCH 2/3] Removing the placeholder admin user. - Fixes #165 --- server/migrations/2019-06-01-222649_remove_admin/down.sql | 1 + server/migrations/2019-06-01-222649_remove_admin/up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 server/migrations/2019-06-01-222649_remove_admin/down.sql create mode 100644 server/migrations/2019-06-01-222649_remove_admin/up.sql 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'; From 21090166144ee2b07d3875d5abcada94e3f8cfcf Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 1 Jun 2019 15:46:40 -0700 Subject: [PATCH 3/3] Disable create post button when community is deleted or removed. - Fixes #167 --- ui/src/components/sidebar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ?