public get linkArray()

in web/frontend/src/app/pages/streams/models/tab.model.ts [172:219]


  public get linkArray(): string[] {
    const link_array =
      this.query || this.flow || this.orderBook
        ? []
        : [this.symbol ? symbolRouteName : streamRouteName];

    switch (true) {
      case this.live:
        link_array.push('live');
        break;
      case this.monitor:
        link_array.push('monitor');
        break;
      case this.reverse:
        link_array.push('reverse');
        break;
      case this.view:
        link_array.push('view');
        break;
      case this.schema:
        link_array.push('schema');
        break;
      case this.streamCreate:
        link_array.push('stream-create');
        break;
      case this.schemaEdit:
        link_array.push('schema-edit');
        break;
      case this.chart:
        link_array.push('chart');
        break;
      case this.query:
        link_array.push('query');
        break;
      case this.orderBook:
        link_array.push('order-book');
        break;
      case this.flow:
        link_array.push('flow');
        break;
    }

    if (this.stream && !this.orderBook) link_array.push(this.stream);
    if (this.symbol && !this.orderBook) link_array.push(this.symbol);
    if (this.id + '') link_array.push(this.id + '');

    return link_array;
  }