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
|
<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>
|
||||||
|
|
|
||||||
|
|
@ -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))
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue