cleanup warnings

This commit is contained in:
Henry Jameson 2026-03-06 12:53:48 +02:00
commit 42cd240347
3 changed files with 6 additions and 5 deletions

View file

@ -88,7 +88,7 @@
<StatusBookmarkFolderMenu
v-if="button.name === 'bookmark'"
:status="status"
:close="() => { close(); outerClose() }"
@close="() => { close(); outerClose() }"
/>
</template>
</Popover>

View file

@ -11,7 +11,8 @@ import { faChevronRight, faFolder } from '@fortawesome/free-solid-svg-icons'
library.add(faChevronRight, faFolder)
const StatusBookmarkFolderMenu = {
props: ['status', 'close'],
props: ['status'],
emits: ['success', 'error', 'close'],
data() {
return {}
},
@ -33,8 +34,8 @@ const StatusBookmarkFolderMenu = {
this.$store
.dispatch('bookmark', { id: this.status.id, bookmark_folder_id: value })
.then(() => this.$emit('onSuccess'))
.catch((err) => this.$emit('onError', err.error.error))
.then(() => this.$emit('success'))
.catch((err) => this.$emit('error', err.error.error))
},
},
}

View file

@ -8,7 +8,7 @@
<button
class="main-button"
@click="toggleFolder(folder.id)"
@click.stop="close"
@click.stop="$emit('close')"
>
<span
class="input menu-checkbox -radio"