Commit 3cec965f authored by Mark Harding's avatar Mark Harding

(fix): if error, pass through to channel component

No related merge requests found
Pipeline #85176473 waiting for delayed job with stages
in 40 minutes and 42 seconds
<ng-container *ngIf="channel; else loader">
<ng-container *ngIf="error || channel; else loader">
<ng-container
*ngIf="!proEnabled || !channel.pro || isOwner || isAdmin; else isProChannel"
*ngIf="
error || !proEnabled || !channel.pro || isOwner || isAdmin;
else isProChannel
"
>
<m-channel #channelComponent></m-channel>
</ng-container>
......
......@@ -23,6 +23,7 @@ import { FeaturesService } from '../../services/features.service';
})
export class ChannelContainerComponent implements OnInit, OnDestroy {
inProgress: boolean = false;
error: string;
channel: MindsUser;
......@@ -100,6 +101,7 @@ export class ChannelContainerComponent implements OnInit, OnDestroy {
});
}
} catch (e) {
this.error = e.message;
console.error(e);
}
......
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