Sha256: 8114f8567e35a1c81b67fa03470ee1ae21485344326ef0f32ca2d0b27557ecf9

Contents?: true

Size: 197 Bytes

Versions: 64

Compression:

Stored size: 197 Bytes

Contents

// Get Task ID from URL. Split url by '/', filter non-empty values and get Task ID.
export const getTaskID = () =>
  window.location.pathname
    .split('/')
    .filter(i => i)
    .slice(-1)[0];

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
foreman-tasks-2.0.2 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-2.0.1 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-2.0.0 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-1.2.0 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js