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
885
Issues
885
List
Boards
Labels
Service Desk
Milestones
Merge Requests
50
Merge Requests
50
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
Compare Revisions
5ae9506b887475024c4fa4ee8c87c0bb60376dd8...527024d5ba21aa38d7f3fde9a8bdd4d4b50c791e
Source
527024d5ba21aa38d7f3fde9a8bdd4d4b50c791e
Select Git revision
...
Target
5ae9506b887475024c4fa4ee8c87c0bb60376dd8
Select Git revision
Compare
Commits (3)
(chore) Remove hashtag targetting from boost campaigns -
#2084
· 96126ac3
Guy Thouret
authored
2 hours ago
96126ac3
(chore) Set max boost campaign preview width the same as newsfeed -
#2086
· 64fa4eca
Guy Thouret
authored
2 hours ago
64fa4eca
(chore) Update boost campaign creator for new preview payload structure -
#2086
· 527024d5
Guy Thouret
authored
2 hours ago
527024d5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
5 deletions
+21
-5
src/app/modules/boost/campaigns/campaigns.service.ts
src/app/modules/boost/campaigns/campaigns.service.ts
+4
-0
src/app/modules/boost/campaigns/campaigns.type.ts
src/app/modules/boost/campaigns/campaigns.type.ts
+4
-1
src/app/modules/boost/campaigns/creator/creator.component.html
...pp/modules/boost/campaigns/creator/creator.component.html
+2
-2
src/app/modules/boost/campaigns/creator/creator.component.ts
src/app/modules/boost/campaigns/creator/creator.component.ts
+7
-2
src/app/modules/boost/campaigns/view/view.component.scss
src/app/modules/boost/campaigns/view/view.component.scss
+4
-0
No files found.
src/app/modules/boost/campaigns/campaigns.service.ts
View file @
527024d5
...
...
@@ -249,4 +249,8 @@ export class CampaignsService {
},
];
}
async
rate
():
Promise
<
number
>
{
return
((
await
this
.
client
.
get
(
`api/v2/boost/campaigns/rate`
))
as
any
).
rate
;
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/boost/campaigns/campaigns.type.ts
View file @
527024d5
...
...
@@ -49,5 +49,8 @@ export type CampaignPayment = {
};
export
type
CampaignPreview
=
{
cannot_fulfill_daily
?:
boolean
;
canBeDelivered
:
boolean
;
durationDays
:
number
;
globalViewsPerDay
:
number
;
viewsPerDayRequested
:
number
;
};
This diff is collapsed.
Click to expand it.
src/app/modules/boost/campaigns/creator/creator.component.html
View file @
527024d5
...
...
@@ -109,7 +109,7 @@
></m-boost-campaigns-creator--content-selector>
</div>
<div
class=
"m-form--field"
>
<
!--<
div class="m-form--field">
<label class="m-form--field-label">
<span i18n>Targeting</span>
<m-tooltip icon="help" i18n>TBD</m-tooltip>
...
...
@@ -138,7 +138,7 @@
<i class="material-icons">check</i>
</m-hashtags-selector>
</div>
</div>
</div>
-->
<div
class=
"m-form--fieldset"
>
<div
class=
"m-form--field"
>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/boost/campaigns/creator/creator.component.ts
View file @
527024d5
...
...
@@ -35,7 +35,12 @@ export class BoostCampaignsCreatorComponent implements OnInit, OnDestroy {
currentError
:
string
=
''
;
preview
:
CampaignPreview
=
{};
preview
:
CampaignPreview
=
{
canBeDelivered
:
true
,
durationDays
:
0
,
globalViewsPerDay
:
0
,
viewsPerDayRequested
:
0
,
};
protected
route$
:
Subscription
;
...
...
@@ -68,7 +73,7 @@ export class BoostCampaignsCreatorComponent implements OnInit, OnDestroy {
this
.
preview$
=
this
.
previewSubject
.
pipe
(
debounceTime
(
600
))
.
subscribe
(
async
(
campaign
:
Campaign
)
=>
{
this
.
preview
=
(
await
this
.
service
.
preview
(
campaign
))
||
{}
;
this
.
preview
=
(
await
this
.
service
.
preview
(
campaign
))
||
this
.
preview
;
this
.
detectChanges
();
});
}
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/boost/campaigns/view/view.component.scss
View file @
527024d5
...
...
@@ -24,4 +24,8 @@
color
:
themed
(
$m-grey-400
);
}
}
.m-boost-campaigns-creator--content-selector
{
max-width
:
860px
;
}
}
This diff is collapsed.
Click to expand it.