cleanup warnings
This commit is contained in:
parent
f1b6e8417d
commit
42cd240347
3 changed files with 6 additions and 5 deletions
|
|
@ -88,7 +88,7 @@
|
|||
<StatusBookmarkFolderMenu
|
||||
v-if="button.name === 'bookmark'"
|
||||
:status="status"
|
||||
:close="() => { close(); outerClose() }"
|
||||
@close="() => { close(); outerClose() }"
|
||||
/>
|
||||
</template>
|
||||
</Popover>
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue