fix: preserve growth task label
All checks were successful
CD Pipeline / deploy (push) Successful in 1m2s
All checks were successful
CD Pipeline / deploy (push) Successful in 1m2s
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
<div class="growth-task-list">
|
||||
{% for task in growth.priority_tasks | default([]) %}
|
||||
{% if task.action == 'backfill' %}
|
||||
<button class="growth-task is-{{ task.tone | default('neutral') }}" type="button" data-pchome-backfill-trigger data-limit="80">
|
||||
<button class="growth-task is-{{ task.tone | default('neutral') }}" type="button" data-pchome-backfill-trigger data-preserve-label="true" data-limit="80">
|
||||
<span class="momo-mono">{{ '%02d'|format(task.rank) }}</span>
|
||||
<strong>{{ task.title }}</strong>
|
||||
<em>{{ task.metric }}</em>
|
||||
|
||||
@@ -417,6 +417,9 @@ let priceChartInstance = null;
|
||||
const limit = Number(trigger.dataset.limit || 60);
|
||||
trigger.disabled = running;
|
||||
trigger.classList.toggle('is-loading', running);
|
||||
if (trigger.dataset.preserveLabel === 'true') {
|
||||
return;
|
||||
}
|
||||
trigger.innerHTML = running
|
||||
? '<i class="fas fa-spinner fa-spin"></i> 執行中'
|
||||
: `<i class="fas fa-search"></i> 補強 ${limit} 筆`;
|
||||
|
||||
Reference in New Issue
Block a user