language.service.ts 591 Bytes
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
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
import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class LanguageService {


  constructor() { }

  public printState(state: string) {
    switch (state) {
      case "not_deployed":
        return "Not deployed";
      case "deployed":
        return "Deployed";
      case "deployment_pending":
        return "Deployment pending";
      case "removal_pending":
        return "Removal pending";
      case "failed":
        return "Failed";
      case "rejected":
        return "Rejected";
      default:
        return "Not deployed";
    }
  }
}