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:
Chris Hill-Scott
2019-05-09 13:33:33 +01:00
parent 1ffa8c8915
commit 923ac7190c
2 changed files with 26 additions and 9 deletions

View File

@@ -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>