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
863
Issues
863
List
Boards
Labels
Service Desk
Milestones
Merge Requests
50
Merge Requests
50
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
56dfa91a
Commit
56dfa91a
authored
42 minutes ago
by
Juan Manuel Solaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat) ability to count scheduled activities
parent
3fa631c7
epic/post-scheduler
1 merge request
!494
WIP: epic/post-scheduler
Pipeline
#77592138
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
sorted.component.html
src/app/modules/channels/sorted/sorted.component.html
+1
-1
sorted.component.ts
src/app/modules/channels/sorted/sorted.component.ts
+13
-0
No files found.
src/app/modules/channels/sorted/sorted.component.html
View file @
56dfa91a
...
...
@@ -9,7 +9,7 @@
<div
class=
"mindsList__tools m-border"
>
<div
class=
"mindsListTools__scheduled"
(click)=
"toggleScheduled()"
[class.selected]=
"seeScheduled"
>
<m-tooltip
icon=
"date_range"
>
See Scheduled Activities
</m-tooltip>
<span>
scheduled:
10
</span>
<span>
scheduled:
{{scheduledCount}}
</span>
</div>
<m-sort-selector
class=
"m-channel--sorted__SortSelector"
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/channels/sorted/sorted.component.ts
View file @
56dfa91a
...
...
@@ -14,6 +14,7 @@ import { Session } from "../../../services/session";
import
{
PosterComponent
}
from
"
../../newsfeed/poster/poster.component
"
;
import
{
SortedService
}
from
"
./sorted.service
"
;
import
{
ClientMetaService
}
from
"
../../../common/services/client-meta.service
"
;
import
{
Client
}
from
"
../../../services/api
"
;
@
Component
({
selector
:
'
m-channel--sorted
'
,
...
...
@@ -68,6 +69,8 @@ export class ChannelSortedComponent implements OnInit {
@
ViewChild
(
'
poster
'
,
{
static
:
false
})
protected
poster
:
PosterComponent
;
scheduledCount
:
number
=
0
;
constructor
(
public
feedsService
:
FeedsService
,
protected
service
:
SortedService
,
...
...
@@ -75,6 +78,7 @@ export class ChannelSortedComponent implements OnInit {
protected
clientMetaService
:
ClientMetaService
,
@
SkipSelf
()
injector
:
Injector
,
protected
cd
:
ChangeDetectorRef
,
public
client
:
Client
)
{
this
.
clientMetaService
.
inherit
(
injector
)
...
...
@@ -110,6 +114,8 @@ export class ChannelSortedComponent implements OnInit {
.
setLimit
(
12
)
.
fetch
();
this
.
getScheduledCount
();
}
catch
(
e
)
{
console
.
error
(
'
ChannelsSortedComponent.load
'
,
e
);
}
...
...
@@ -185,4 +191,11 @@ export class ChannelSortedComponent implements OnInit {
this
.
seeScheduled
=
!
this
.
seeScheduled
;
this
.
load
(
true
);
}
async
getScheduledCount
()
{
const
url
=
`api/v2/channel/scheduled/
${
this
.
channel
.
guid
}
/count`
;
const
response
:
any
=
await
this
.
client
.
get
(
url
);
this
.
scheduledCount
=
response
.
count
;
this
.
detectChanges
();
}
}
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