Tweaks
* Don't show @everyone in the role picker * Show some text on the image picker talking about Discord CDN * Correct == in todos
This commit is contained in:
parent
5e99a6f9de
commit
bb2128a7ed
@ -16,7 +16,9 @@ export const Mentions = ({ input }) => {
|
|||||||
collection: [
|
collection: [
|
||||||
{
|
{
|
||||||
trigger: "@",
|
trigger: "@",
|
||||||
values: (roles || []).map(({ id, name }) => ({ key: name, value: id })),
|
values: (roles || [])
|
||||||
|
.filter((role) => role.name === "@everyone")
|
||||||
|
.map(({ id, name }) => ({ key: name, value: id })),
|
||||||
allowSpaces: true,
|
allowSpaces: true,
|
||||||
selectTemplate: (item) => `<@&${item.original.value}>`,
|
selectTemplate: (item) => `<@&${item.original.value}>`,
|
||||||
menuItemTemplate: (item) => `@${item.original.key}`,
|
menuItemTemplate: (item) => `@${item.original.key}`,
|
||||||
|
@ -21,7 +21,7 @@ export const GuildTodos = () => {
|
|||||||
<>
|
<>
|
||||||
<h2>Server</h2>
|
<h2>Server</h2>
|
||||||
{sortedTodos
|
{sortedTodos
|
||||||
.filter((todo) => todo.channel_id == null)
|
.filter((todo) => todo.channel_id === null)
|
||||||
.map((todo) => (
|
.map((todo) => (
|
||||||
<>
|
<>
|
||||||
<Todo todo={todo} key={todo.id} />
|
<Todo todo={todo} key={todo.id} />
|
||||||
@ -33,7 +33,7 @@ export const GuildTodos = () => {
|
|||||||
<>
|
<>
|
||||||
<h2>#{channel.name}</h2>
|
<h2>#{channel.name}</h2>
|
||||||
{sortedTodos
|
{sortedTodos
|
||||||
.filter((todo) => todo.channel_id == channel.id)
|
.filter((todo) => todo.channel_id === channel.id)
|
||||||
.map((todo) => (
|
.map((todo) => (
|
||||||
<>
|
<>
|
||||||
<Todo todo={todo} key={todo.id} />
|
<Todo todo={todo} key={todo.id} />
|
||||||
|
@ -37,6 +37,11 @@ const ImagePickerModal = ({ setModalOpen, setImage }) => {
|
|||||||
}}
|
}}
|
||||||
onSubmitText={"Save"}
|
onSubmitText={"Save"}
|
||||||
>
|
>
|
||||||
|
<p>
|
||||||
|
Please note: if you attach an image directly from Discord, it will not be visible in
|
||||||
|
the dashboard, but will be visible on reminders. Other image-sharing sites such as
|
||||||
|
Imgur don't have this issue.
|
||||||
|
</p>
|
||||||
<input
|
<input
|
||||||
class="input"
|
class="input"
|
||||||
id="urlInput"
|
id="urlInput"
|
||||||
|
Loading…
Reference in New Issue
Block a user