v1.0.65: default untagged timer entries to Client Books
This commit is contained in:
@@ -6450,7 +6450,7 @@ async function stopTimer(token, entryId) {
|
||||
}
|
||||
|
||||
// src/plugin.ts
|
||||
var CURRENT_VERSION = "1.0.64";
|
||||
var CURRENT_VERSION = "1.0.65";
|
||||
var GITEA_BASE = "https://gitea.pdmarf.co.uk/pdm/stream_deck_notion_timer/raw/branch/stable-rebuild";
|
||||
var SIGNING_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
|
||||
MCowBQYDK2VwAyEAN7ko8TUpuPzPAJuKAZCRjV0c4ZSlou5d9pUAF6o12b4=
|
||||
@@ -6542,6 +6542,7 @@ var HARDCODED = {
|
||||
timingDbId: "2ec93117da3a80799ee2cf91244ee264",
|
||||
projectsDbId: "cd65c760-0f0a-4d6e-a262-d572c9e31585"
|
||||
};
|
||||
var DEFAULT_TAG = "Client Books";
|
||||
async function getGlobal() {
|
||||
const stored = await plugin_default.settings.getGlobalSettings();
|
||||
return { ...stored, ...HARDCODED };
|
||||
@@ -6741,7 +6742,7 @@ var TimerToggle = class extends SingletonAction {
|
||||
setRunningEntry(null, null);
|
||||
this.clearElapsedCheck();
|
||||
}
|
||||
const entryId = await startTimer(global.notionToken, global.timingDbId, projectId, projectName, global.userId, tag, description);
|
||||
const entryId = await startTimer(global.notionToken, global.timingDbId, projectId, projectName, global.userId, tag || DEFAULT_TAG, description);
|
||||
setRunningEntry(entryId, ev.action.id);
|
||||
this.scheduleElapsedCheck(entryId, ev.action.id, title);
|
||||
await Promise.all([ev.action.setState(1), ev.action.setTitle(`\u23F1 ${title}`)]);
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user