Skip to content

Commit

Permalink
Update antenna-column.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih authored Jul 30, 2024
1 parent ad6a162 commit d532c09
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/frontend/src/ui/deck/antenna-column.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,17 @@ async function setAntenna() {
if (canceled || antenna == null) return;

if (antenna === '_CREATE_') {
os.popup(defineAsyncComponent(() => import('@/components/MkAntennaEditorDialog.vue')), {}, {
created(newAntenna: MisskeyEntities.Antenna) {
const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkAntennaEditorDialog.vue')), {}, {
created: (newAntenna: MisskeyEntities.Antenna) => {
antennasCache.delete();
updateColumn(props.column.id, {
antennaId: newAntenna.id,
});
},
}, 'closed');
closed: () => {
dispose();
},
});
return;
}

Expand Down

0 comments on commit d532c09

Please sign in to comment.