@ -1,4 +1,4 @@
import { AfterContentInit , After ViewInit , Component , Injector , OnDestroy , OnInit } from "@angular/core" ;
import { AfterViewInit , Component , Injector , OnDestroy , OnInit } from "@angular/core" ;
import { Observable } from "rxjs" ;
import { I18nService } from "core-app/modules/common/i18n/i18n.service" ;
import { BoardService } from "core-app/modules/boards/board/board.service" ;
@ -11,6 +11,9 @@ import {BannersService} from "core-app/modules/common/enterprise/banners.service
import { LoadingIndicatorService } from "core-app/modules/common/loading-indicator/loading-indicator.service" ;
import { AuthorisationService } from "core-app/modules/common/model-auth/model-auth.service" ;
import { componentDestroyed } from "ng2-rx-componentdestroyed" ;
import { enterpriseDemoUrl , enterpriseEditionUrl } from "core-app/globals/constants.const" ;
import { DomSanitizer } from "@angular/platform-browser" ;
import { boardTeaserVideoURL } from "core-app/modules/boards/board-constants.const" ;
@Component ( {
templateUrl : './boards-index-page.component.html' ,
@ -31,8 +34,11 @@ export class BoardsIndexPageComponent implements OnInit, OnDestroy, AfterViewIni
areYouSure : this.I18n.t ( 'js.text_are_you_sure' ) ,
deleteSuccessful : this.I18n.t ( 'js.notice_successful_delete' ) ,
noResults : this.I18n.t ( 'js.notice_no_results_to_display' ) ,
upsaleBoards : this.I18n.t ( 'js.boards.upsale.boards' ) ,
upsaleCheckOutLink : this.I18n.t ( 'js.boards.upsale.check_out_link' )
teaser_text : this.I18n.t ( 'js.boards.upsale.teaser_text' ) ,
enterprise : this.I18n.t ( 'js.boards.upsale.upgrade_to_ee_text' ) ,
upgrade : this.I18n.t ( 'js.boards.upsale.upgrade' ) ,
personal_demo : this.I18n.t ( 'js.boards.upsale.personal_demo' ) ,
} ;
public canAdd = false ;
@ -47,7 +53,8 @@ export class BoardsIndexPageComponent implements OnInit, OnDestroy, AfterViewIni
private readonly loadingIndicatorService :LoadingIndicatorService ,
private readonly authorisationService :AuthorisationService ,
private readonly injector :Injector ,
private readonly bannerService :BannersService ) {
private readonly bannerService :BannersService ,
private readonly domSanitizer :DomSanitizer ) {
}
ngOnInit ( ) : void {
@ -88,4 +95,16 @@ export class BoardsIndexPageComponent implements OnInit, OnDestroy, AfterViewIni
public showBoardIndexView() {
return ! this . bannerService . eeShowBanners ;
}
public eeLink() {
return enterpriseEditionUrl + '&op_referrer=boards' ;
}
public demoLink() {
return enterpriseDemoUrl ;
}
public teaserVideoURL() {
return this . domSanitizer . bypassSecurityTrustResourceUrl ( boardTeaserVideoURL ) ;
}
}