Commit 9096b0d5 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): show correct message in closed channel splash

No related merge requests found
Pipeline #85178209 failed with stages
in 6 minutes and 27 seconds
......@@ -57,13 +57,14 @@
</div>
<h3
class="mdl-color-text--blue-grey-300"
i18n="@@MINDS__CHANNELS__BLOCKED_NOTICE"
i18n="@@MINDS__CHANNELS__THIS_IS_A_CLOSED_CHANNEL"
>
@{{ user.username }}
This is a closed channel
</h3>
<minds-button-subscribe
[user]="user"
(subscribed)="onSubscribed()"
[request]="true"
></minds-button-subscribe>
</div>
......
......@@ -14,7 +14,15 @@ import { SignupModalService } from '../../../../modules/modals/signup/service';
>
<i class="material-icons">person_add</i>
<span>
<ng-container i18n="@@M__ACTION__SUBSCRIBE">Subscribe</ng-container>
<ng-container i18n="@@M__ACTION__SUBSCRIBE" *ngIf="!request">
Subscribe
</ng-container>
<ng-container
i18n="@@M__ACTION__SEND_SUBSCRIPTION_REQUEST"
*ngIf="request"
>
Send Subscription Request
</ng-container>
</span>
</button>
<button
......@@ -24,9 +32,9 @@ import { SignupModalService } from '../../../../modules/modals/signup/service';
>
<i class="material-icons">close</i>
<span>
<ng-container i18n="@@MINDS__BUTTONS__UNSUBSCRIBE__SUBSCRIBED_LABEL"
>Unsubscribe</ng-container
>
<ng-container i18n="@@MINDS__BUTTONS__UNSUBSCRIBE__SUBSCRIBED_LABEL">
Unsubscribe
</ng-container>
</span>
</button>
`,
......@@ -39,6 +47,7 @@ export class SubscribeButton {
_content: any;
_listener: Function;
showModal: boolean = false;
@Input() request: boolean = false;
@Output('subscribed') onSubscribed: EventEmitter<any> = new EventEmitter();
constructor(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment