Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (2)
(fix): missing semicolon
· 19cf50ac
Marcelo Rivera
authored
Jul 18, 2019
19cf50ac
(feat): added "Not found" message
· 979201ae
Marcelo Rivera
authored
Jul 18, 2019
979201ae
Show whitespace changes
Inline
Side-by-side
src/app/modules/boost/campaigns/creator/content-selector.component.html
View file @
979201ae
...
...
@@ -28,14 +28,22 @@
[hostClass]=
"'mdl-card mdl-shadow--2dp m-boost-campaigns-creator--card m-boost-campaigns-creator--' + type + '-card'"
></minds-card>
</ng-container>
<ng-template
#noResult
>
<ng-container
*ngIf=
"inProgress; else empty"
>
<div
class=
"mdl-spinner mdl-js-spinner is-active"
[
mdl
]
></div>
</ng-container>
<ng-template
#empty
>
<div
class=
"m-boost-campaigns-creator--content-selector--no-content"
i18n
>
Search for some content...
<div
class=
"m-boost-campaigns-creator--content-selector--no-content"
>
<ng-container
*ngIf=
"query; else searchForSomeContent"
i18n
>
Not found
</ng-container>
</div>
<ng-template
#searchForSomeContent
>
<ng-container
i18n
>
Search for some content...
</ng-container>
</ng-template>
</ng-template>
</ng-template>
</div>
src/app/modules/boost/campaigns/creator/content-selector.component.ts
View file @
979201ae
...
...
@@ -19,7 +19,7 @@ import { Session } from '../../../../services/session';
})
export
class
BoostCampaignsCreatorContentSelectorComponent
implements
OnInit
{
type
:
CampaignType
type
:
CampaignType
;
@
Input
(
'
type
'
)
set
_type
(
type
:
CampaignType
)
{
this
.
type
=
type
;
...
...