tavi-interaction-chain 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/panel-controller.js +5 -4
- package/package.json +1 -1
package/dist/panel-controller.js
CHANGED
|
@@ -87,7 +87,7 @@ export function mountWorkflow(panel, root, options = {}) {
|
|
|
87
87
|
}
|
|
88
88
|
if (!issue)
|
|
89
89
|
return;
|
|
90
|
-
el('progress').textContent = '来源:Tavi Web 自动化运行台账';
|
|
90
|
+
el('progress').textContent = options.issue ? '' : '来源:Tavi Web 自动化运行台账';
|
|
91
91
|
}
|
|
92
92
|
async function loadRuns() {
|
|
93
93
|
el('progress').textContent = '正在读取运行台账…';
|
|
@@ -112,9 +112,10 @@ export function mountWorkflow(panel, root, options = {}) {
|
|
|
112
112
|
picker.value = issue.run;
|
|
113
113
|
show(issue);
|
|
114
114
|
}
|
|
115
|
-
show();
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
show(options.issue);
|
|
116
|
+
if (options.boardUrl && !options.issue)
|
|
117
|
+
loadRuns().catch(() => { if (!controller.signal.aborted)
|
|
118
|
+
el('progress').textContent = ''; });
|
|
118
119
|
function theme(light) {
|
|
119
120
|
root.dataset.theme = light ? 'light' : 'dark';
|
|
120
121
|
el('chain').dataset.workflowTheme = root.dataset.theme;
|