...
 
Commits (2)
......@@ -11,7 +11,8 @@
<m-sort-selector
[algorithm]="algorithm"
[period]="period"
[customType]="customType"
[allowedCustomTypes]="['activities', 'images', 'videos', 'blogs']"
(onChange)="setSort($event.algorithm, $event.period, $event.customType)"
></m-sort-selector>
</div>
......
.m-firehose {
max-width: 1280px;
.m-firehose__moderatorAction {
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
margin-bottom: 25px;
max-width: 270px;
&.m-firehose__moderatorAction--leftButton {
justify-content: right;
}
&.m-firehose__moderatorAction--rightButton {
justify-content: left;
}
max-width: 1280px;
minds-activity {
.item-image-video {
video {
width:100%;
height:auto;
max-height: 400px;
}
}
.item-image {
img {
width: 100%;
max-height: 400px;
object-fit: contain;
}
}
.m-firehose__sort-container {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 12px;
margin-bottom: 16px;
@include m-theme(){
background-color: themed($m-white);
minds-rich-embed {
.thumbnail {
img {
width: auto;
max-height: 400px;
}
}
}
}
m-sort-selector {
flex-grow: 1;
}
.m-firehose__moderatorAction {
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
margin-bottom: 25px;
max-width: 270px;
&.m-firehose__moderatorAction--leftButton {
justify-content: right;
}
&.m-firehose__moderatorAction--rightButton {
justify-content: left;
}
}
.m-firehose__sort-container {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 12px;
margin-bottom: 16px;
@include m-theme(){
background-color: themed($m-white);
}
.m-firehose__spinner {
text-align: center;
m-sort-selector {
flex-grow: 1;
}
}
}
\ No newline at end of file
.m-firehose__spinner {
text-align: center;
}
}
......@@ -28,7 +28,7 @@ class MindsActivityMockComponent {
class MindsSortSelectorMockComponent {
@Input() algorithm: string;
@Input() period: string;
@Input() customType: string;
@Input() allowedCustomTypes: Array<string>;
@Output() onChange: EventEmitter<any> = new EventEmitter<any>();
}
......
......@@ -60,7 +60,7 @@ export class AdminFirehoseComponent implements OnInit, OnDestroy {
this.algorithm = 'top';
this.updateSortRoute();
}
this.entity = null;
this.load();
});
......@@ -83,7 +83,6 @@ export class AdminFirehoseComponent implements OnInit, OnDestroy {
try {
const url = `api/v2/admin/firehose/${this.algorithm}/${this.customType}?hashtags=${hashtags}&period=${period}&all=${all}`;
console.log(url);
const response: any = await this.client.get(url);
this.entities = response.entities;
......