mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 01:04:00 -04:00
Add a hint when no team members are selected
This helps clarify that you will still be able to see the folder. Follows the phrasing used for the "No folders…" message.
This commit is contained in:
@@ -48,13 +48,10 @@
|
||||
templates: {
|
||||
all: (selection, total, field) => `All ${field}s`,
|
||||
some: (selection, total, field) => `${selection} of ${total} ${field}s`,
|
||||
none: (selection, total, field) => {
|
||||
if (field === 'folder') {
|
||||
return "No folders (only templates outside a folder)";
|
||||
} else {
|
||||
return `No ${field}s`;
|
||||
}
|
||||
}
|
||||
none: (selection, total, field) => ({
|
||||
"folder": "No folders (only templates outside a folder)",
|
||||
"team member": "No team members (only you)"
|
||||
}[field] || `No ${field}s`)
|
||||
},
|
||||
addContent: function(legendText, fieldLabel) {
|
||||
const $content = $(`<p>
|
||||
|
||||
Reference in New Issue
Block a user