ボタン配置改修

This commit is contained in:
2024-06-11 15:11:24 +09:00
parent 0e9b0ea693
commit 4ee72a8a75
4 changed files with 26 additions and 33 deletions

View File

@@ -113,19 +113,19 @@ export const useFlowEditorStore = defineStore('flowEditor', {
},
deleteEvent(event: IKintoneEvent) {
async deleteEvent(event: IKintoneEvent) {
const store = useFlowEditorStore();
if (event.flowData) {
const flow = event.flowData;
if (flow.id === '') {
return;
if (flow.id !== '') {
await flowCtrl.DeleteFlow(flow.id)
if (this.flows) {
this.flows = this.flows.filter((f) => f.id !== flow.id);
}
}
flowCtrl.DeleteFlow(flow.id)
eventTree.deleteEvent(event, store);
if(this.flows){
this.flows = this.flows.filter((f) => f.id !== flow.id);
}
} else {
}
else {
eventTree.deleteEvent(event, store);
}
},