From 893fb733632443cb9f00e941d058b901ed71e88b Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Thu, 25 Jul 2019 19:41:12 -0400 Subject: [PATCH] added privacy changes context-menu binding --- .../create-status/create-status.component.html | 13 ++++++++----- .../create-status/create-status.component.ts | 7 ++++++- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/app/components/create-status/create-status.component.html b/src/app/components/create-status/create-status.component.html index eed1736a..01047cc9 100644 --- a/src/app/components/create-status/create-status.component.html +++ b/src/app/components/create-status/create-status.component.html @@ -34,23 +34,26 @@ - + + + +
Error: mentions must be placed closer to the start in order to use multiposting.
- + Public - + Unlisted - + Followers-only - + Direct diff --git a/src/app/components/create-status/create-status.component.ts b/src/app/components/create-status/create-status.component.ts index 951b16f4..a613365b 100644 --- a/src/app/components/create-status/create-status.component.ts +++ b/src/app/components/create-status/create-status.component.ts @@ -134,7 +134,7 @@ export class CreateStatusComponent implements OnInit, OnDestroy { private statusReplyingTo: Status; selectedPrivacy = 'Public'; - privacyList: string[] = ['Public', 'Unlisted', 'Follows-only', 'DM']; + // privacyList: string[] = ['Public', 'Unlisted', 'Follows-only', 'DM']; private accounts$: Observable; private accountSub: Subscription; @@ -185,6 +185,11 @@ export class CreateStatusComponent implements OnInit, OnDestroy { this.accountSub.unsubscribe(); } + changePrivacy(value: string): boolean { + this.selectedPrivacy = value; + return false; + } + private detectAutosuggestion(status: string) { if (!this.loaded) return;