@dosgato/dialog 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,7 +17,7 @@ async function fetchAvailableTags() {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
function tagToOption(tag) {
|
|
20
|
-
return { label:
|
|
20
|
+
return { label: (!tag.group.excludeTitle && isNotBlank(tag.group.title) ? tag.group.title + ': ' : '') + tag.name, value: tag.id };
|
|
21
21
|
}
|
|
22
22
|
async function getOptions(search) {
|
|
23
23
|
await fetchAvailableTags();
|
|
@@ -6,6 +6,14 @@ export interface Tag {
|
|
|
6
6
|
export interface TagGroup {
|
|
7
7
|
id: string;
|
|
8
8
|
title?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The group title is not useful to disambiguate tag names, therefore it need not be prefixed onto
|
|
11
|
+
* the tag name when the tag is removed from its group context.
|
|
12
|
+
*
|
|
13
|
+
* Example: when the group title is "Misc" or "Ungrouped", you probably don't want to see "Misc: MyTag",
|
|
14
|
+
* you just want to see "MyTag"
|
|
15
|
+
*/
|
|
16
|
+
excludeTitle?: boolean;
|
|
9
17
|
tags: Tag[];
|
|
10
18
|
}
|
|
11
19
|
export interface TagClient<TargetTypes = any> {
|
package/package.json
CHANGED