af83/chouette-core

View on GitHub
app/packs/src/vehicle_journeys/components/CancelVehicleJourneys.js

Summary

Maintainability
A
0 mins
Test Coverage
import CancelButton from '../../helpers/cancel_button'

export default class CancelVehicleJourney extends CancelButton {
  constructor(props) {
    super(props)
  }

  hasPolicy(){
    return this.props.filters.policy['vehicle_journeys.update'] == true
  }

  formClassName() {
    return 'vj_collection'
  }
}