|
1 | | -import { getSearchParam } from '../routing'; |
| 1 | +import { getBoardIdFromURL, getSearchParam } from '../routing'; |
2 | 2 | import { waitForElement } from './utils'; |
3 | 3 | import { |
4 | 4 | deleteBoardProperty, |
@@ -54,39 +54,39 @@ export class PageModification { |
54 | 54 | getBoardProperty(property) { |
55 | 55 | const { cancelRequest, abortPromise } = this.createAbortPromise(); |
56 | 56 | this.sideEffects.push(cancelRequest); |
57 | | - return getBoardProperty(getSearchParam('rapidView'), property, { abortPromise }); |
| 57 | + return getBoardProperty(getBoardIdFromURL(), property, { abortPromise }); |
58 | 58 | } |
59 | 59 |
|
60 | 60 | getBoardConfiguration() { |
61 | 61 | const { cancelRequest, abortPromise } = this.createAbortPromise(); |
62 | 62 | this.sideEffects.push(cancelRequest); |
63 | | - return getBoardConfiguration(getSearchParam('rapidView', { abortPromise })); |
| 63 | + return getBoardConfiguration(getBoardIdFromURL(), { abortPromise }); |
64 | 64 | } |
65 | 65 |
|
66 | 66 | updateBoardProperty(property, value) { |
67 | 67 | const { cancelRequest, abortPromise } = this.createAbortPromise(); |
68 | 68 | this.sideEffects.push(cancelRequest); |
69 | | - return updateBoardProperty(getSearchParam('rapidView'), property, value, { abortPromise }); |
| 69 | + return updateBoardProperty(getBoardIdFromURL(), property, value, { abortPromise }); |
70 | 70 | } |
71 | 71 |
|
72 | 72 | deleteBoardProperty(property) { |
73 | 73 | const { cancelRequest, abortPromise } = this.createAbortPromise(); |
74 | 74 | this.sideEffects.push(cancelRequest); |
75 | | - return deleteBoardProperty(getSearchParam('rapidView'), property, { abortPromise }); |
| 75 | + return deleteBoardProperty(getBoardIdFromURL(), property, { abortPromise }); |
76 | 76 | } |
77 | 77 |
|
78 | 78 | getBoardEditData() { |
79 | 79 | const { cancelRequest, abortPromise } = this.createAbortPromise(); |
80 | 80 | this.sideEffects.push(cancelRequest); |
81 | 81 |
|
82 | | - return getBoardEditData(getSearchParam('rapidView', { abortPromise })); |
| 82 | + return getBoardEditData(getBoardIdFromURL(), { abortPromise }); |
83 | 83 | } |
84 | 84 |
|
85 | 85 | getBoardEstimationData() { |
86 | 86 | const { cancelRequest, abortPromise } = this.createAbortPromise(); |
87 | 87 | this.sideEffects.push(cancelRequest); |
88 | 88 |
|
89 | | - return getBoardEstimationData(getSearchParam('rapidView', { abortPromise })); |
| 89 | + return getBoardEstimationData(getBoardIdFromURL(), { abortPromise }); |
90 | 90 | } |
91 | 91 |
|
92 | 92 | searchIssues(jql, params = {}) { |
@@ -186,6 +186,6 @@ export class PageModification { |
186 | 186 | } |
187 | 187 |
|
188 | 188 | getBoardId() { |
189 | | - return this.getSearchParam('rapidView'); |
| 189 | + return getBoardIdFromURL(); |
190 | 190 | } |
191 | 191 | } |
0 commit comments