Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: added hint for why user cannot modify the execution timing for an issue (#770)

Zilong Zhou0e89b67d73b0
diff --git a/frontend/src/components/Issue/IssueSidebar.vue b/frontend/src/components/Issue/IssueSidebar.vue
index 6282c68dd8..c1b071cecb 100644
--- a/frontend/src/components/Issue/IssueSidebar.vue
+++ b/frontend/src/components/Issue/IssueSidebar.vue
@@ -130,13 +130,19 @@
clearable
@update:value="updateEarliestAllowedTs"
/>
- <span v-else class="textfield col-span-2">
- {{
- task.earliestAllowedTs === 0
- ? $t("task.earliest-allowed-time-unset")
- : dayjs(task.earliestAllowedTs * 1000).format("LLL")
- }}</span
- >
+
+ <div v-else class="tooltip-wrapper">
+ <span class="tooltip w-48 textlabel">{{
+ $t("task.earliest-allowed-time-no-modify")
+ }}</span>
+ <span class="textfield col-span-2 text-sm font-medium text-main">
+ {{
+ task.earliestAllowedTs === 0
+ ? $t("task.earliest-allowed-time-unset")
+ : dayjs(task.earliestAllowedTs * 1000).format("LLL")
+ }}
+ </span>
+ </div>
</div>
</template>
diff --git a/frontend/src/locales/en.yml b/frontend/src/locales/en.yml
index 1b92b6289b..e87610c898 100644
--- a/frontend/src/locales/en.yml
+++ b/frontend/src/locales/en.yml
@@ -221,6 +221,8 @@ task:
success: Success
warn: Warning
error: Error
+ earliest-allowed-time-no-modify: >-
+ You can not modify this field because you are not the issue assignee or it's not pending to run.
banner:
demo-intro: This is a demo version of Bytebase.
demo-intro-readonly: This is a demo version of Bytebase in read-only mode.
diff --git a/frontend/src/locales/zh-CN.yml b/frontend/src/locales/zh-CN.yml
index ccafdcf79a..704bbbc37b 100644
--- a/frontend/src/locales/zh-CN.yml
+++ b/frontend/src/locales/zh-CN.yml
@@ -218,6 +218,7 @@ task:
success: 成功
warn: 警告
error: 错误
+ earliest-allowed-time-no-modify: 您无法修改此字段因为您不是该工单的审核人或者它不在待执行状态。
banner:
demo-intro: 这是 Bytebase 的演示版本。
demo-intro-readonly: 这是 Bytebase 的只读演示版本