Skip to content

Commit

Permalink
change plugin id
Browse files Browse the repository at this point in the history
  • Loading branch information
Павел Яров authored and pavyarov committed Jan 9, 2020
1 parent 8348f9c commit 0616ce5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@drill4j/browser-extension",
"version": "0.2.1",
"version": "0.2.2",
"scripts": {
"build": "webpack -p --env.production",
"start": "node build-utils/webserver.js",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Drill4J Browser Extension",
"version": "0.2.1",
"version": "0.2.2",
"background": {
"page": "background.html"
},
Expand Down
1 change: 1 addition & 0 deletions src/popup-component/pages/main-page/main-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const MainPage = withRouter(
if (defaultAdminUrl) {
axios.post('/login').then((response) => {
const authToken = response.headers[TOKEN_HEADER.toLowerCase()];

if (authToken) {
browser.storage.local.set({ token: authToken });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export const FinishRecording = withRouter(
type="secondary"
onClick={() =>
window.open(
`${getCorrectAdminUrl(adminUrl)}/full-page/${agentId}/coverage/dashboard`,
`${getCorrectAdminUrl(
adminUrl,
)}/full-page/${agentId}/test-to-code-mapping/dashboard`,
)
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ const inProgress = BEM(styles);

function finishRecordingSession(activeTab: string, config: AgentConfig) {
browser.storage.local.set({ [activeTab]: { ...config, isActive: false, timerStart: 0 } });
axios.post(`/agents/${config.agentId}/coverage/dispatch-action`, {
axios.post(`/agents/${config.agentId}/test-to-code-mapping/dispatch-action`, {
type: 'STOP',
payload: { sessionId: config.sessionId },
});
}

function cancelRecordingSession(activeTab: string, config: AgentConfig) {
browser.storage.local.set({ [activeTab]: { ...config, isActive: false, timerStart: 0 } });
axios.post(`/agents/${config.agentId}/coverage/dispatch-action`, {
axios.post(`/agents/${config.agentId}/test-to-code-mapping/dispatch-action`, {
type: 'CANCEL',
payload: { sessionId: config.sessionId },
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function startRecordingSession(activeTab: string, testName: string, config
data: {
payload: { sessionId },
},
} = await axios.post(`/agents/${config.agentId}/coverage/dispatch-action`, {
} = await axios.post(`/agents/${config.agentId}/test-to-code-mapping/dispatch-action`, {
type: 'START',
payload: { testType: 'MANUAL' },
});
Expand Down

0 comments on commit 0616ce5

Please sign in to comment.