import { Component , ViewRef } from '@angular/core' ; import { HsDialogComponent } from '../layout/dialogs/dialog-component.interface' ; import { HsDialogContainerService } from '../layout/dialogs/dialog-container.service' ; import { HsSaveMapManagerService } from './save-map-manager.service' ; @ Component ( { selector : 'hs-save-map-dialog-result' , templateUrl : './partials/dialog_result.html' , } ) export class HsSaveMapResultDialogComponent implements HsDialogComponent { viewRef : ViewRef ; data : any ; constructor ( public HsDialogContainerService , public HsSaveMapManagerService ) { } close ( ) { this . HsDialogContainerService . destroy ( this ) ; } initiateSave ( newSave ) { this . HsSaveMapManagerService . initiateSave ( newSave ) ; this . close ( ) ; } changeName ( ) { this . HsSaveMapManagerService . saveMapResulted . next ( 'rename' ) ; this . close ( ) ; } }