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-10.0.1 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-10.0.0 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-9.2.3 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-9.2.2 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-9.2.1 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-9.2.0 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-9.1.1 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-9.0.4 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-9.1.0 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-9.0.2 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-9.0.1 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-8.3.3 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-9.0.0 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-8.2.1 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-8.1.4 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-8.3.2 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-8.3.1 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-8.1.3 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-8.3.0 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js
foreman-tasks-8.2.0 webpack/ForemanTasks/Components/TaskDetails/TasksDetailsHelper.js