Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
827
Issues
827
List
Boards
Labels
Service Desk
Milestones
Merge Requests
45
Merge Requests
45
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
238dad73
Commit
238dad73
authored
22 minutes ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): correctly handle channel load error and show it on screen
parent
8ee8ba1b
epic/minds-pro
1 merge request
!528
WIP: (feat): Minds Pro
Pipeline
#82761523
failed with stages
in 7 minutes and 55 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
4 deletions
+30
-4
channel.component.html
src/app/modules/pro/channel/channel.component.html
+4
-0
channel.component.scss
src/app/modules/pro/channel/channel.component.scss
+18
-1
channel.component.ts
src/app/modules/pro/channel/channel.component.ts
+8
-3
No files found.
src/app/modules/pro/channel/channel.component.html
View file @
238dad73
...
...
@@ -97,6 +97,10 @@
</div>
<div
class=
"m-proChannel__body"
>
<div
class=
"m-proChannel__error"
*ngIf=
"error"
>
{{ error }}
</div>
<router-outlet></router-outlet>
</div>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/channel.component.scss
View file @
238dad73
...
...
@@ -143,9 +143,26 @@ m-pro--channel {
margin-bottom
:
24px
;
}
&
>
m-blog-view-infinite
,
m-blog-view
{
&
>
m-blog-view-infinite
,
m-blog-view
{
background-color
:
transparent
!
important
;
}
.m-proChannel__error
{
display
:
inline-block
;
margin
:
16px
0
;
padding
:
17px
8px
;
font-size
:
40px
;
text-align
:
center
;
background
:
var
(
--
m-pro--transparent-background-color
);
border-radius
:
4px
;
@include
m-theme
()
{
color
:
themed
(
$m-red
);
}
}
}
.m-proChannel__footer
{
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/channel.component.ts
View file @
238dad73
...
...
@@ -243,6 +243,8 @@ export class ProChannelComponent implements OnInit, AfterViewInit, OnDestroy {
}
async
load
()
{
this
.
error
=
null
;
if
(
!
this
.
username
)
{
return
;
}
...
...
@@ -255,7 +257,7 @@ export class ProChannelComponent implements OnInit, AfterViewInit, OnDestroy {
this
.
bindCssVariables
();
this
.
setTitle
();
}
catch
(
e
)
{
this
.
error
=
e
.
getMessage
()
;
this
.
error
=
e
.
message
;
}
this
.
shouldOpenWireModal
();
...
...
@@ -264,10 +266,12 @@ export class ProChannelComponent implements OnInit, AfterViewInit, OnDestroy {
}
async
reload
()
{
this
.
error
=
null
;
try
{
this
.
channel
=
await
this
.
channelService
.
reload
(
this
.
username
);
}
catch
(
e
)
{
this
.
error
=
e
.
getMessage
()
;
this
.
error
=
e
.
message
;
}
this
.
shouldOpenWireModal
();
...
...
@@ -283,7 +287,8 @@ export class ProChannelComponent implements OnInit, AfterViewInit, OnDestroy {
continue
;
}
let
value
=
styles
[
style
].
trim
();
let
value
=
typeof
styles
[
style
]
===
'
string
'
?
styles
[
style
].
trim
()
:
null
;
if
(
!
value
)
{
continue
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment