fix: checkLogin in StatusCard (#270)

This commit is contained in:
Chris 2022-12-02 10:18:57 +08:00 committed by GitHub
parent c4cf3fb371
commit 18d5fd4804
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 7 deletions

View file

@ -29,6 +29,8 @@ useCommand({
icon: () => props.icon,
onActivate() {
if (!checkLogin())
return
const clickEvent = new MouseEvent('click', {
view: window,
bubbles: true,

View file

@ -18,6 +18,8 @@ const {
} = $(useStatusActions(props))
const reply = () => {
if (!checkLogin())
return
if (details) {
// TODO focus to editor
}