DEV: Don't use two-way args of ChooseTopic (#197)

This commit is contained in:
Jarek Radosz 2024-05-28 15:56:58 +02:00 committed by GitHub
parent a8363fb2fa
commit 27af3e6368
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -17,7 +17,7 @@
</label> </label>
</td> </td>
<td> <td>
<ChooseTopic @selectedTopicId={{this.topicId}} /> <ChooseTopic @topicChangedCallback={{this.newTopicSelected}} />
</td> </td>
</tr> </tr>
</tbody> </tbody>

View File

@ -29,4 +29,9 @@ export default class TestIntegration extends Component {
popupAjaxError(e); popupAjaxError(e);
} }
} }
@action
newTopicSelected(topic) {
this.topicId = topic.id;
}
} }