...
 
Commits (3)
......@@ -47,7 +47,7 @@
<m-overlay-modal></m-overlay-modal>
<m--blockchain--transaction-overlay></m--blockchain--transaction-overlay>
<m-modal--tos-updated *ngIf="session.isLoggedIn()"></m-modal--tos-updated>
<m-juryDutySession__summons *ngIf="session.isLoggedIn()"></m-juryDutySession__summons>
<m-juryDutySession__summons *ngIf="session.isLoggedIn() && !minds.pro"></m-juryDutySession__summons>
<m-modal-signup-on-scroll></m-modal-signup-on-scroll>
......
......@@ -63,8 +63,10 @@ export class Minds {
this.notificationService.getNotifications();
this.session.isLoggedIn(async (is) => {
if (is && !window.Minds.pro) {
this.showOnboarding = await this.onboardingService.showModal();
if (is && !window.Minds.pro) { // TODO remove window.Minds.pro check from this line
if (!window.Minds.pro) {
this.showOnboarding = await this.onboardingService.showModal();
}
if (this.minds.user.language !== this.minds.language) {
console.log('[app]:: language change', this.minds.user.language, this.minds.language);
window.location.reload(true);
......
......@@ -160,6 +160,8 @@
[(ngModel)]="tag.tag"
i18n-placeholder
>
<i class="material-icons" (click)="removeTag(i)">clear</i>
</div>
</div>
......@@ -238,6 +240,9 @@
[(ngModel)]="link.href"
i18n-placeholder
>
<i class="material-icons" (click)="removeFooterLink(i)">clear</i>
</div>
</div>
......
......@@ -95,6 +95,7 @@
.m-pro--settings--flex-inputs {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
max-width: 40em;
......
......@@ -74,6 +74,10 @@ export class ProSettingsComponent implements OnInit {
this.settings.tag_list.push({ label: '', tag: '' });
}
removeTag(index: number) {
this.settings.tag_list.splice(index, 1);
}
addBlankFooterLink() {
if (!this.settings) {
return;
......@@ -82,6 +86,10 @@ export class ProSettingsComponent implements OnInit {
this.settings.footer_links.push({ title: '', href: '' });
}
removeFooterLink(index: number) {
this.settings.footer_links.splice(index, 1);
}
detectChanges() {
this.cd.markForCheck();
this.cd.detectChanges();
......