From 178a2ed933f0a29725f5672d94d227aa598280cb 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 ac43b1d9..153c9f72 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 8c85f0cb62af57a730a444fd46e3c8e4c7521fce 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 00000000..6178857f --- /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 00000000..7cec8870 --- /dev/null +++ b/server/migrations/2019-06-01-222649_remove_admin/up.sql @@ -0,0 +1 @@ +delete from user_ where name like 'admin'; From 842c8b0885142ea881729bdb1cbe01e5e83e6da5 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 6532bc05..d36d962c 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 ?