1
0
mirror of https://github.com/NicolasConstant/sengi synced 2025-01-21 21:28:22 +01:00

hide button when hashtag is added

This commit is contained in:
Nicolas Constant 2020-12-17 20:07:37 -05:00
parent 8566966463
commit e772613193
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<a href (click)="goToTop()" class="hashtag-header__gototop" title="go to top">
<h3 class="hashtag-header__title">#{{hashtagElement.tag}}</h3>
<button class="btn-custom-secondary hashtag-header__add-column" (click)="addColumn($event)" title="add column to board">add column</button>
<button class="btn-custom-secondary hashtag-header__add-column" (click)="addColumn($event)" title="add column to board" [hidden]="columnAdded">add column</button>
</a>
</div>
<app-stream-statuses #appStreamStatuses class="hashtag-stream" *ngIf="hashtagElement"

View File

@ -39,6 +39,8 @@ export class HashtagComponent implements OnInit, OnDestroy {
private refreshSubscription: Subscription;
private goToTopSubscription: Subscription;
columnAdded: boolean;
constructor(
private readonly store: Store,
private readonly toolsService: ToolsService) { }
@ -74,6 +76,8 @@ export class HashtagComponent implements OnInit, OnDestroy {
const newStream = new StreamElement(StreamTypeEnum.tag, `${hashtag}`, this.lastUsedAccount.id, hashtag, null, null, this.lastUsedAccount.instance);
this.store.dispatch([new AddStream(newStream)]);
this.columnAdded = true;
return false;
}