use static iframe ref name

This commit is contained in:
Shawn Salat 2023-08-04 17:23:59 -06:00
parent 544f031b10
commit c0285d410e
1 changed files with 3 additions and 3 deletions

View File

@ -74,8 +74,8 @@
</div>
<!-- Modal for opening in modal view -->
<IframeModal
:ref="`iframeModal-${groupId}`"
:name="`iframeModal-${groupId}`"
:ref="`iframeModal`"
:name="`iframeModal`"
@closed="$emit('itemClicked')"
/>
<!-- Edit item menu -->
@ -213,7 +213,7 @@ export default {
methods: {
/* Opens the iframe modal */
triggerModal(url) {
this.$refs[`iframeModal-${this.groupId}`].show(url);
this.$refs.iframeModal.show(url);
},
/* Sorts items alphabetically using the title attribute */
sortAlphabetically(items) {