all files / app/ unavailable.component.ts

69.23% Statements 9/13
0% Branches 0/2
33.33% Functions 1/3
60% Lines 6/10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30            1× 1×   1×             1×                 1×     1×  
/* Copyright CloudLinux Zug GmbH 2010-2017 All Rights Reserved
 *
 * Licensed under CLOUD LINUX LICENSE AGREEMENT
 * http://cloudlinux.com/docs/LICENSE.TXT
 */
 
import { Component } from '@angular/core';
import {BaseComponent} from "./utils/base_component";
import {SafeHtml} from "@angular/platform-browser";
import {AppState} from "./app.service";
 
 
@Component({
    template: require('./../templates/unavailable.component.html'),
    styles: [require('../styles/unavailable.component.less')],
})
export class UnavailableComponent extends BaseComponent {
    public errorText: SafeHtml;
    public errorContext: {};
    public icon: string = 'info';
 
    constructor (public appState: AppState) {
        super();
    }
 
    back() {
        window.history.go(-this.appState.get('historyLength'));
    }
}