Avoid to show the resume draft button on empty posts
This commit is contained in:
parent
b942c4616e
commit
2bd3ce1f21
1 changed files with 5 additions and 0 deletions
|
|
@ -36,6 +36,11 @@ export function openDraft() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function iconizeDraft() {
|
export function iconizeDraft() {
|
||||||
|
// If nothing was entered, fully close instead of showing the resume pill
|
||||||
|
if (!draftState.hasDraft) {
|
||||||
|
discardDraft();
|
||||||
|
return;
|
||||||
|
}
|
||||||
modalOpen = false;
|
modalOpen = false;
|
||||||
iconized = true;
|
iconized = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue