ngOnInit()

in source/frontend/src/app/pages/sftp-main/sftp-main.component.ts [217:243]


  ngOnInit() {


    try{
    this.site_name = AppConfig.settings.company_name.name;
    this.tag_line= AppConfig.settings.tagline.tagline;
    console.log(AppConfig.settings);
    this.titleService.setTitle(AppConfig.settings.site_title.title);
    }
    catch (error){

      console.log(error);

    }
    this.sftpService.isConnected().subscribe((result) => {
      this.page = 'browse';
      this.isConnected = true;
      this.initFolders();
      this.health_ok = true;
      this.timeout();
    },
      (error) => {
        this.page = 'settings';
        this.isConnected = false;
        this.health_ok = false;
      });
  }