github.com/hernad/nomad@v1.6.112/ui/app/routes/allocations/allocation/task/logs.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import Route from '@ember/routing/route';
     7  
     8  export default class LogsRoute extends Route {
     9    model() {
    10      const task = super.model(...arguments);
    11      return task && task.get('allocation.node').then(() => task);
    12    }
    13  }