Files
plane/space/ee/helpers/issue.helper.ts
Akshita Goyal 7b1decbffd Chore intake emails forms (#1558)
* chore: intake email and forms ui

* chore: intake forms

* chore: api integrations for settings

* fix: intake tooltip

* fix: type added

* fix: intake form space

* fix: forms

* fix: space app form for intake

* fix: lint issue

* fix: theme based image handling

* fix: type fixed

* chore: intake settings modal

* fix: handled html text area

* chore: payload changes for intake settings

* fix: changed api endpoint

* fix: build issues

* chore: issue creation for intake forms

* chore: in-app intake toggle

* fix: added feature flagging

* chore: changed the default response

* fix: changed flag

* fix: handled placeholders

* fix: removed unwnated classes

* chore: removed the extra migration

---------

Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
Co-authored-by: Bavisetti Narayan <72156168+NarayanBavisetti@users.noreply.github.com>
2024-11-05 20:15:58 +05:30

6 lines
330 B
TypeScript

export const getDescriptionPlaceholder = (isFocused: boolean, description: string | undefined): string => {
const isDescriptionEmpty = !description || description === "<p></p>" || description.trim() === "";
if (!isDescriptionEmpty || isFocused) return "Press '/' for commands...";
else return "Click to add description";
};