Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: apply task create state to others (#4032)
boojack0b28e7bbe929
diff --git a/frontend/src/components/Issue/IssueTaskStatementPanel.vue b/frontend/src/components/Issue/IssueTaskStatementPanel.vueindex c06ffad26e..3c717ed3df 100644--- a/frontend/src/components/Issue/IssueTaskStatementPanel.vue+++ b/frontend/src/components/Issue/IssueTaskStatementPanel.vue@@ -16,7 +16,7 @@:disabled="isEmpty(state.editStatement)"type="button"class="btn-small"- @click.prevent="applyTaskStateToOthers(selectedTask as Task)"+ @click.prevent="applyTaskStateToOthers(selectedTask as TaskCreate)">{{ $t("issue.apply-to-other-tasks") }}</button>@@ -369,10 +369,6 @@ const allowUploadSheetForTask = computed(() => {});const isTaskHasSheetId = computed(() => {- if (!allowUploadSheetForTask.value) {- return false;- }-const task = selectedTask.value;if (create.value) {return !isUndefined((task as TaskCreate).sheetId);diff --git a/frontend/src/components/Issue/logic/GhostModeProvider.ts b/frontend/src/components/Issue/logic/GhostModeProvider.tsindex c9770c5dc9..480e69943f 100644--- a/frontend/src/components/Issue/logic/GhostModeProvider.ts+++ b/frontend/src/components/Issue/logic/GhostModeProvider.ts@@ -254,7 +254,7 @@ export default defineComponent({return baseAllowApplyTaskStateToOthers.value;});- const applyTaskStateToOthers = (task: Task) => {+ const applyTaskStateToOthers = (task: TaskCreate) => {if (!allowApplyTaskStateToOthers.value) return;return baseApplyTaskStateToOthers(task);};diff --git a/frontend/src/components/Issue/logic/IssueLogic.ts b/frontend/src/components/Issue/logic/IssueLogic.tsindex cfbc66b74c..9616069152 100644--- a/frontend/src/components/Issue/logic/IssueLogic.ts+++ b/frontend/src/components/Issue/logic/IssueLogic.ts@@ -64,7 +64,7 @@ type IssueLogic = {) => any;updateSheetId: (sheetId: SheetId | undefined) => void;allowApplyTaskStateToOthers: Ref<boolean>;- applyTaskStateToOthers: (task: Task) => any;+ applyTaskStateToOthers: (task: TaskCreate) => any;doCreate(): any;// eventsdiff --git a/frontend/src/components/Issue/logic/base.ts b/frontend/src/components/Issue/logic/base.tsindex 3e44b969fc..1a7fe75007 100644--- a/frontend/src/components/Issue/logic/base.ts+++ b/frontend/src/components/Issue/logic/base.ts@@ -24,7 +24,6 @@ import {import { useDatabaseStore, useIssueStore, useProjectStore } from "@/store";import {flattenTaskList,- sheetIdOfTask,statementOfTask,TaskTypeWithSheetId,TaskTypeWithStatement,@@ -253,16 +252,18 @@ export const useBaseIssueLogic = (params: {return true;};- const applyTaskStateToOthers = (task: Task) => {+ const applyTaskStateToOthers = (task: TaskCreate) => {const taskList = flattenTaskList<TaskCreate>(issue.value);- const sheetId = sheetIdOfTask(task);- const statement = statementOfTask(task);+ const sheetId = task.sheetId;+ const statement = task.statement;for (const taskItem of taskList) {if (TaskTypeWithStatement.includes(taskItem.type)) {if (!isUndefined(sheetId)) {taskItem.sheetId = sheetId;+ taskItem.statement = "";} else {+ taskItem.sheetId = undefined;taskItem.statement = statement ?? "";}}