File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -958,7 +958,7 @@ const ttsModelOptions = ref<any>(null)
958958const triggerDrawerRef = ref <InstanceType <typeof TriggerDrawer >>()
959959
960960const openCreateTriggerDrawer = () => {
961- triggerDrawerRef .value ?.open ()
961+ triggerDrawerRef .value ?.open (undefined , ' APPLICATION ' , id )
962962}
963963const openEditTriggerDrawer = (trigger : any ) => {
964964 triggerDrawerRef .value ?.open (trigger .id )
Original file line number Diff line number Diff line change @@ -601,13 +601,21 @@ const init = (trigger_id: string) => {
601601 })
602602}
603603const current_trigger_id = ref <string >()
604- const open = (trigger_id ? : string ) => {
604+ const open = (trigger_id ? : string , source_type ? : string , source_id ? : string ) => {
605605 is_edit .value = trigger_id ? true : false
606606 current_trigger_id .value = trigger_id
607607 drawer .value = true
608608 if (trigger_id ) {
609609 init (trigger_id )
610610 }
611+ if (source_type && source_id ) {
612+ if (source_type == ' APPLICATION' ) {
613+ applicationRefresh ({ application_ids: [source_id ] })
614+ }
615+ if (source_type == ' TOOL' ) {
616+ toolRefresh ({ tool_ids: [source_id ] })
617+ }
618+ }
611619}
612620
613621const close = () => {
You can’t perform that action at this time.
0 commit comments