Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
🔖 v1.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
tobimori committed May 24, 2020
1 parent 6a98e9c commit 30723c2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,10 @@ ___

![](resources/readme/PropertyInspector.png)

* **API Token** is your private API Token you can get from your [Toggl profile](https://www.toggl.com/app/profile). This Token is handled like a password. ***Don't share it***. Required.
* **Entry Name** describes the activity you want to report. It is not required but strongly recommended.
* **API Token** is your private API Token you can get from your [Toggl profile](https://www.toggl.com/app/profile). Required.
* **Workspace ID** is the id of your workspace. You can usually find it in the URL. Required.

![](resources/readme/TogglWorkspaceId.png)
* **Project ID** is the id of the project you want to assign the task to. You can find it in the URL after clicking on a project in the [Toggl project view](https://www.toggl.com/app/projects/).

![](resources/readme/TogglProjectId.png)
* **Workspace** is your workspace you start the time entries in. Required.
* **Project** is the project you want to assign the task to. Leave blank for no project.

# 📞 Help

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"Icon": "resources/pluginIcon",
"PropertyInspectorPath": "pi/main_pi.html",
"URL": "https://moeritz.io",
"Version": "1.1.0",
"Version": "1.2.0",
"OS": [
{
"Platform": "mac",
Expand Down
2 changes: 1 addition & 1 deletion pi/main_pi.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<input class="sdpi-item-value" id="apitoken" value="" pattern="[a-z0-9]+" placeholder="Enter your Private API Token"
onchange="setAPIToken()" required>
</div>
<div class="sdpi-item hiddenError" id="error">
<div class="sdpi-item" id="error">
<details class="message caution">
<summary>API Token is invalid!</summary>
</details>
Expand Down
4 changes: 2 additions & 2 deletions pi/main_pi.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function connectElgatoStreamDeckSocket (inPort, inPropertyInspectorUUID, inRegis
if (payload.activity) document.getElementById('activity').value = payload.activity

const apiToken = document.getElementById('apitoken').value
document.querySelector('.hiddenAll').classList.remove('hiddenAll')

document.querySelector('.hiddenAll').classList.remove('hiddenAll')
apiToken && updateWorkspaces(apiToken).then(e => {
if (payload.workspaceId) document.getElementById('wid').value = payload.workspaceId

Expand Down Expand Up @@ -72,7 +72,7 @@ function setAPIToken () {
}

function setWorkspace () {
updateProjects(document.getElementById('apitoken').value, document.getElementById('wid').value)
updateProjects(document.getElementById('apitoken').value, document.getElementById('wid').value)
sendSettings()
}

Expand Down
Binary file modified resources/readme/PropertyInspector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed resources/readme/TogglProjectId.png
Binary file not shown.
Binary file removed resources/readme/TogglWorkspaceId.png
Binary file not shown.

0 comments on commit 30723c2

Please sign in to comment.