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
866
Issues
866
List
Boards
Labels
Service Desk
Milestones
Merge Requests
53
Merge Requests
53
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
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
db32dcc9
Commit
db32dcc9
authored
3 minutes ago
by
Ben Hayward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix
parent
3f7c0e7e
fix/boost-console-feed-1596
1 merge request
!501
[Sprint/LuckyLizard](fix) Boost console feed #1596
Pipeline
#77190166
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
booster.component.html
src/app/modules/boost/console/booster/booster.component.html
+3
-3
booster.component.ts
src/app/modules/boost/console/booster/booster.component.ts
+3
-3
No files found.
src/app/modules/boost/console/booster/booster.component.html
View file @
db32dcc9
...
...
@@ -19,7 +19,7 @@
class=
"mdl-spinner mdl-js-spinner is-active"
[
mdl
]
></div>
<div
#poster
[hidden]=
"noContent"
>
<div
#poster
[hidden]=
"
!inProgress &&
noContent"
>
</div>
</ng-container>
...
...
@@ -39,13 +39,13 @@
</div>
</ng-container>
<h3
[hidden]=
"noContent"
i18n=
"@@BOOST__CONSOLE__BOOSTER__POST_SOMETHING"
>
You have no content yet. Why don't you post
<h3
[hidden]=
"
!inProgress &&
noContent"
i18n=
"@@BOOST__CONSOLE__BOOSTER__POST_SOMETHING"
>
You have no content yet. Why don't you post
something?
</h3>
<div
*ngIf=
"inProgress"
class=
"mdl-spinner mdl-js-spinner is-active"
[
mdl
]
></div>
<div
#poster
[hidden]=
"noContent"
>
<div
#poster
[hidden]=
"
!inProgress &&
noContent"
>
</div>
</ng-container>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/boost/console/booster/booster.component.ts
View file @
db32dcc9
...
...
@@ -23,7 +23,7 @@ export class BoostConsoleBooster {
/* poster component */
@
ViewChild
(
'
poster
'
,
{
read
:
ViewContainerRef
,
static
:
false
})
poster
:
ViewContainerRef
;
inProgress
:
boolean
=
fals
e
;
inProgress
:
boolean
=
tru
e
;
loaded
:
boolean
=
false
;
feed$
:
Observable
<
BehaviorSubject
<
Object
>
[]
>
;
componentRef
;
...
...
@@ -77,7 +77,7 @@ export class BoostConsoleBooster {
this
.
feed$
=
this
.
feedsService
.
feed
;
this
.
inProgress
=
false
;
this
.
loaded
=
true
;
this
.
feed$
.
subscribe
(
feed
=>
this
.
noContent
=
feed
.
length
?
false
:
true
);
this
.
feed$
.
subscribe
(
feed
=>
this
.
noContent
=
feed
.
length
>
0
);
}
/**
...
...
@@ -115,7 +115,7 @@ export class BoostConsoleBooster {
*/
loadPoster
()
{
this
.
feedsService
.
feed
.
subscribe
(
feed
=>
{
if
(
feed
.
length
>
0
)
{
if
(
feed
.
length
>
0
&&
!
this
.
inProgress
&&
this
.
loaded
)
{
try
{
this
.
poster
.
clear
();
this
.
componentRef
.
clear
();
...
...
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