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 <StatusBookmarkFolderMenu
v-if="button.name === 'bookmark'" v-if="button.name === 'bookmark'"
:status="status" :status="status"
:close="() => { close(); outerClose() }" @close="() => { close(); outerClose() }"
/> />
</template> </template>
</Popover> </Popover>

View file

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

View file

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