Only show gallery relevancy button when relevant.
This commit is contained in:
parent
da41659666
commit
61d535707d
@ -25,6 +25,7 @@ const gallery: Stage = {
|
|||||||
weight: 901,
|
weight: 901,
|
||||||
suggestedStatus: 'flagged',
|
suggestedStatus: 'flagged',
|
||||||
severity: 'low',
|
severity: 'low',
|
||||||
|
shouldShow: (project) => project.gallery && project.gallery.length > 0,
|
||||||
message: async () => (await import('../messages/gallery/not-relevant.md?raw')).default,
|
message: async () => (await import('../messages/gallery/not-relevant.md?raw')).default,
|
||||||
} as ButtonAction,
|
} as ButtonAction,
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user