Skip to content

Commit b3c66fa

Browse files
committed
Fix for #109
1 parent 632c446 commit b3c66fa

File tree

10 files changed

+123
-96
lines changed

10 files changed

+123
-96
lines changed

CHANGELOG.JSON

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"`WebPartTitle`: changing font-sizes on different resolutions [#114](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/114)",
1010
"`WebPartTitle`: Added accessibility tags for web part title [#121](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/121)",
1111
"`ListView`: Resizable columns - introduced a `isResizable` property [#119](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/119)",
12-
"`TaxonomyPicker`: table markup changed to DIV [#113](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/113)"
12+
"`TaxonomyPicker`: table markup changed to DIV [#113](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/113)",
13+
"`TaxonomyPicker`: Disable the terms which are set as deprecated or unavailable for tagging [#109](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/109)"
1314
],
1415
"fixes": [
1516
"`IFrameDialog`: dialog width is not correct in IE11 [#118](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/118)",

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- `WebPartTitle`: Added accessibility tags for web part title [#121](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/121)
1010
- `ListView`: Resizable columns - introduced a `isResizable` property [#119](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/119)
1111
- `TaxonomyPicker`: table markup changed to DIV [#113](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/113)
12+
- `TaxonomyPicker`: Disable the terms which are set as deprecated or unavailable for tagging [#109](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/109)
1213

1314
**Fixes**
1415

docs/documentation/docs/about/release-notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- `WebPartTitle`: Added accessibility tags for web part title [#121](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/121)
1010
- `ListView`: Resizable columns - introduced a `isResizable` property [#119](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/119)
1111
- `TaxonomyPicker`: table markup changed to DIV [#113](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/113)
12+
- `TaxonomyPicker`: Disable the terms which are set as deprecated or unavailable for tagging [#109](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/109)
1213

1314
**Fixes**
1415

src/controls/taxonomyPicker/TaxonomyPicker.module.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
padding-left: 20px;
5757

5858
.termEnabled,
59-
.termDisabled {
59+
.termDisabled,
60+
.termNoTagging {
6061
background-repeat: no-repeat;
6162
background-position: 30px 3px;
6263
}
@@ -69,6 +70,10 @@
6970
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAFMSURBVDhPzZPNSsNAFIULQqEQEPoSQqAg7gqC0HdwXxAElyYgBBGSZ+gDdOUyIauULATdKrgIKCKuQjbiDySCkNV4TrkzpJW2cefAxwwzc86de2em0/k3zXGcHpgC9Qeu5glAsAMefN+/K8vyVbVoWZbdMxDFY9d136Ioum6hW9iiDVSe588rxDXmJ+AAdAWOOVcbAy1O01R5nqfYoxVglyk+Hu7Z4FiwOcc1GBRMwQSnOAxDHz0jDyCwwCVQS3DO0gU0BkmSzG8A/UQiz7DxC5yLGQ1PwDeYGYOiKF6WarCPDUOJeor+A4z0m8P4SNaG+hY+4zi+aZh0scEBNeB41DTBuCcGjj6FjaM/BUFwW1XVO6vdMNiSdIzJLwN5TJZ+iSLQKYwbR9cmZyaFdX+JhZIiMue+cLFQxA0G22uusd/6I8OEb4LXRwZN4Q+3Ys8Mb9+nRgAAAABJRU5ErkJggg=='); // /_layouts/15/Images/EMMTermDeprecated.png
7071
}
7172

73+
.termNoTagging {
74+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAZBJREFUeNqkU0trwkAQnhURBBFPKghekuJN7KW9pOCj0Agl9/4uT/6BHgXpxQfxYKltKEYhV3tXFF/4RrOdXYgkxpz8YA47O983O9+whFIKt8DvddHv9wej0UjY7/dwPB55sGaJRKImSVLxXMiSl9Hr9fRWq0WvoVKpUFVVv6xaF1nX9R+LvFqteKAgrVarVNM0fi6Xy9Sq99mfjeTv2Wz2mMvlYL1en/OGYYCiKKTT6fAzG8flQbfb1ReLxX0+n4fJZOLwQxRFKJVKNJPJwHa7dZuI5I/lcsnJrHMwGHQUpdNpHp5bGI/Hr7IsA3Pc7/dcDEynU5jP5xAIBJwCpmmeN+IF9IaT0VA20p+V5yaGQqF2s9mE3W4Hh8PBFXZyLBbTstmsaAkQqyuu7nOz2UiCIEAkEoFwOMzz6A0n44YgHo8bhULBYQaxP7vRaLyjyFsqleIiDLbOAyTfXY5GLueu1+s1XNULE2Fg5Gg0qj4jrnlDrhmHIu3hcPh0Op0gmUz+IvfBy1xy62/0wY34F2AAKtctO7g/KgIAAAAASUVORK5CYII='); // /_layouts/15/Images/EMMTermDisabled.png
75+
}
76+
7277
label>span {
7378
padding-left: 25px;
7479
}

src/controls/taxonomyPicker/TaxonomyPicker.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ export class TaxonomyPicker extends React.Component<ITaxonomyPickerProps, ITaxon
234234
_ObjectIdentity_: ts._ObjectIdentity_,
235235
Description: ts.Description,
236236
IsDeprecated: null,
237+
IsAvailableForTagging: null,
237238
IsRoot: null
238239
};
239240

src/controls/taxonomyPicker/Term.tsx

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@ export default class Term extends React.Component<ITermProps, ITermState> {
4848
}
4949
}
5050

51+
/**
52+
* Get the right class name for the term
53+
*/
54+
private getClassName() {
55+
if (this.props.term.IsDeprecated) {
56+
return styles.termDisabled;
57+
}
58+
59+
if (!this.props.term.IsAvailableForTagging) {
60+
return styles.termNoTagging;
61+
}
62+
63+
return styles.termEnabled;
64+
}
65+
5166
/**
5267
* Default React render
5368
*/
@@ -60,8 +75,8 @@ export default class Term extends React.Component<ITermProps, ITermState> {
6075
<div className={`${styles.listItem} ${styles.term}`} style={styleProps}>
6176
<Checkbox
6277
checked={this.state.selected}
63-
disabled={this.props.term.IsDeprecated || this.props.disabled}
64-
className={this.props.term.IsDeprecated ? styles.termDisabled : styles.termEnabled}
78+
disabled={this.props.term.IsDeprecated || !this.props.term.IsAvailableForTagging || this.props.disabled}
79+
className={this.getClassName()}
6580
label={this.props.term.Name}
6681
onChange={this._handleChange} />
6782
</div>

src/services/ISPTermStorePickerService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export interface ITerm {
6767
Name: string;
6868
Description: string;
6969
IsDeprecated: boolean;
70+
IsAvailableForTagging: boolean;
7071
IsRoot: boolean;
7172
PathOfTerm: string;
7273
TermSet: ITermSetMinimal;
Lines changed: 92 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { ITermStore, ITerm, ITermSet } from './ISPTermStorePickerService';
22
import {IPickerTerms, IPickerTerm } from '../controls/taxonomyPicker/ITermPicker';
33
/**
4-
* Defines a http client to request mock data to use the web part with the local workbench
5-
*/
4+
* Defines a http client to request mock data to use the web part with the local workbench
5+
*/
66
export default class SPTermStoreMockHttpClient {
77

88
/**
9-
* Mock SharePoint result sample
10-
*/
9+
* Mock SharePoint result sample
10+
*/
1111
private static _mockTermStores: ITermStore[] = [{
1212
"_ObjectType_": "SP.Taxonomy.TermStore",
1313
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:st:generated-idwdg==",
@@ -38,79 +38,83 @@ export default class SPTermStoreMockHttpClient {
3838
}
3939
}];
4040

41-
private static _mockTerms: ITermSet =
42-
{"_ObjectType_":"SP.Taxonomy.TermSet",
43-
"_ObjectIdentity_":"a4f45d9e-7003-5000-7d35-b4064108885e|fec14c62-7c3b-481b-851b-c80d7802b224:se:15WaN9o+nUi6qkivmCMKhxA4k0b3ed9BqbnSqve6DjrKW1tjX4wxSIv4oNnV63Xg",
44-
"Id":"/Guid(635b5bca-8c5f-4831-8bf8-a0d9d5eb75e0)/",
45-
"Name":"Countries",
46-
"Description":"",
47-
"Names":{"1033":"Countries"},
48-
"Terms":[
49-
{
50-
"_ObjectType_": "SP.Taxonomy.Term",
51-
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:te:generated-id-SPnCDng5nkmdP+UcRJTUTA==",
52-
"Name": "Belgium",
53-
"Id": "0ec2f948-3978-499e-9d3f-e51c4494d44c",
54-
"Description": "",
55-
"IsDeprecated": false,
56-
"IsRoot": true,
57-
"PathOfTerm": "Belgium",
58-
"PathDepth": 1,
59-
"TermSet": {
60-
"_ObjectType_": "SP.Taxonomy.TermSet",
61-
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:se:generated-id-",
62-
"Id": "\/Guid(5b1b6df0-09a2-42eb-a3f6-006556621931)\/",
63-
"Name" : "Country"
64-
}
65-
}, {
66-
"_ObjectType_": "SP.Taxonomy.Term",
67-
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:te:generated-id-1a3nKkDuZUOvMhLp9PvKFw==",
68-
"Id": "2ae7add5-ee40-4365-af32-12e9f4fbca17",
69-
"Name": "Antwerp",
70-
"Description": "",
71-
"IsDeprecated": false,
72-
"IsRoot": false,
73-
"PathOfTerm": "Belgium;Antwerp",
74-
"PathDepth": 2,
75-
"TermSet": {
76-
"_ObjectType_": "SP.Taxonomy.TermSet",
77-
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:se:generated-id-",
78-
"Id": "\/Guid(5b1b6df0-09a2-42eb-a3f6-006556621931)\/",
79-
"Name" : "Country"
80-
}
81-
}, {
82-
"_ObjectType_": "SP.Taxonomy.Term",
83-
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:te:generated-id-WCbUI7Ims0ysT\u002fBkk4NUhQ==",
84-
"Name": "Brussels",
85-
"Id": "23d42658-26b2-4cb3-ac4f-f06493835485",
86-
"Description": "",
87-
"IsDeprecated": false,
88-
"IsRoot": false,
89-
"PathOfTerm": "Belgium;Brussels",
90-
"PathDepth": 2,
91-
"TermSet": {
92-
"_ObjectType_": "SP.Taxonomy.TermSet",
93-
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:se:generated-id-",
94-
"Id": "\/Guid(5b1b6df0-09a2-42eb-a3f6-006556621931)\/",
95-
"Name" : "Country"
96-
}
97-
}, {
98-
"_ObjectType_": "SP.Taxonomy.Term",
99-
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:te:generated-id-WCbUI7Ims0ysT\u002fBkk4NUhQ==",
100-
"Name": "Deprecated",
101-
"Id": "23d42658-26b2-4cb3-ac4f-f06493835486",
102-
"Description": "",
103-
"IsDeprecated": true,
104-
"IsRoot": true,
105-
"PathOfTerm": "Deprecated",
106-
"PathDepth": 1,
107-
"TermSet": {
108-
"_ObjectType_": "SP.Taxonomy.TermSet",
109-
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:se:generated-id-",
110-
"Id": "\/Guid(5b1b6df0-09a2-42eb-a3f6-006556621931)\/",
111-
"Name" : "Country"
112-
}
113-
}]};
41+
private static _mockTerms: ITermSet = {
42+
"_ObjectType_":"SP.Taxonomy.TermSet",
43+
"_ObjectIdentity_":"a4f45d9e-7003-5000-7d35-b4064108885e|fec14c62-7c3b-481b-851b-c80d7802b224:se:15WaN9o+nUi6qkivmCMKhxA4k0b3ed9BqbnSqve6DjrKW1tjX4wxSIv4oNnV63Xg",
44+
"Id":"/Guid(635b5bca-8c5f-4831-8bf8-a0d9d5eb75e0)/",
45+
"Name":"Countries",
46+
"Description":"",
47+
"Names":{"1033":"Countries"},
48+
"Terms":[{
49+
"_ObjectType_": "SP.Taxonomy.Term",
50+
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:te:generated-id-SPnCDng5nkmdP+UcRJTUTA==",
51+
"Name": "Belgium",
52+
"Id": "0ec2f948-3978-499e-9d3f-e51c4494d44c",
53+
"Description": "",
54+
"IsDeprecated": false,
55+
"IsAvailableForTagging": false,
56+
"IsRoot": true,
57+
"PathOfTerm": "Belgium",
58+
"PathDepth": 1,
59+
"TermSet": {
60+
"_ObjectType_": "SP.Taxonomy.TermSet",
61+
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:se:generated-id-",
62+
"Id": "\/Guid(5b1b6df0-09a2-42eb-a3f6-006556621931)\/",
63+
"Name" : "Country"
64+
}
65+
}, {
66+
"_ObjectType_": "SP.Taxonomy.Term",
67+
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:te:generated-id-1a3nKkDuZUOvMhLp9PvKFw==",
68+
"Id": "2ae7add5-ee40-4365-af32-12e9f4fbca17",
69+
"Name": "Antwerp",
70+
"Description": "",
71+
"IsDeprecated": false,
72+
"IsAvailableForTagging": false,
73+
"IsRoot": false,
74+
"PathOfTerm": "Belgium;Antwerp",
75+
"PathDepth": 2,
76+
"TermSet": {
77+
"_ObjectType_": "SP.Taxonomy.TermSet",
78+
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:se:generated-id-",
79+
"Id": "\/Guid(5b1b6df0-09a2-42eb-a3f6-006556621931)\/",
80+
"Name" : "Country"
81+
}
82+
}, {
83+
"_ObjectType_": "SP.Taxonomy.Term",
84+
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:te:generated-id-WCbUI7Ims0ysT\u002fBkk4NUhQ==",
85+
"Name": "Brussels",
86+
"Id": "23d42658-26b2-4cb3-ac4f-f06493835485",
87+
"Description": "",
88+
"IsDeprecated": false,
89+
"IsAvailableForTagging": true,
90+
"IsRoot": false,
91+
"PathOfTerm": "Belgium;Brussels",
92+
"PathDepth": 2,
93+
"TermSet": {
94+
"_ObjectType_": "SP.Taxonomy.TermSet",
95+
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:se:generated-id-",
96+
"Id": "\/Guid(5b1b6df0-09a2-42eb-a3f6-006556621931)\/",
97+
"Name" : "Country"
98+
}
99+
}, {
100+
"_ObjectType_": "SP.Taxonomy.Term",
101+
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:te:generated-id-WCbUI7Ims0ysT\u002fBkk4NUhQ==",
102+
"Name": "Deprecated",
103+
"Id": "23d42658-26b2-4cb3-ac4f-f06493835486",
104+
"Description": "",
105+
"IsDeprecated": true,
106+
"IsAvailableForTagging": false,
107+
"IsRoot": true,
108+
"PathOfTerm": "Deprecated",
109+
"PathDepth": 1,
110+
"TermSet": {
111+
"_ObjectType_": "SP.Taxonomy.TermSet",
112+
"_ObjectIdentity_": "5e06ddd0-d2dd-4fff-bcc0-42b40f4aa59e|4dbeb936-1813-4630-a4bd-9811df3fe7f1:se:generated-id-",
113+
"Id": "\/Guid(5b1b6df0-09a2-42eb-a3f6-006556621931)\/",
114+
"Name" : "Country"
115+
}
116+
}]
117+
};
114118

115119
/**
116120
* Mock method which returns mock terms stores
@@ -134,31 +138,29 @@ export default class SPTermStoreMockHttpClient {
134138
return new Promise<IPickerTerm[]>((resolve) => {
135139
resolve([
136140
{
137-
key : "23d42658-26b2-4cb3-ac4f-f06493835485",
141+
key : "23d42658-26b2-4cb3-ac4f-f06493835485",
138142
name : 'Brussels',
139143
path : "Belgium;Brussels",
140144
termSet :"635b5bca-8c5f-4831-8bf8-a0d9d5eb75e0",
141145
termSetName : "Countries"
142-
},
143-
{
144-
key : "2ae7add5-ee40-4365-af32-12e9f4fbca17",
146+
},
147+
{
148+
key : "2ae7add5-ee40-4365-af32-12e9f4fbca17",
145149
name : 'Antwerp',
146150
path : "Belgium;Antwerp",
147151
termSet :"635b5bca-8c5f-4831-8bf8-a0d9d5eb75e0",
148152
termSetName : "Countries"
149-
},
150-
{
151-
key : "0ec2f948-3978-499e-9d3f-e51c4494d44c",
153+
},
154+
{
155+
key : "0ec2f948-3978-499e-9d3f-e51c4494d44c",
152156
name : 'Belgium',
153157
path : "Belgium",
154158
termSet :"635b5bca-8c5f-4831-8bf8-a0d9d5eb75e0",
155159
termSetName : "Countries"
156-
}
157-
]);
160+
}
161+
]);
158162
});
159-
}
160-
161-
162-
}
163+
}
164+
}
163165

164166

src/services/SPTermStorePickerService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default class SPTermStorePickerService {
132132
}
133133

134134
// Request body to retrieve all terms for the given term set
135-
const data = `<Request xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="Javascript Library"><Actions><ObjectPath Id="1" ObjectPathId="0" /><ObjectIdentityQuery Id="2" ObjectPathId="0" /><ObjectPath Id="4" ObjectPathId="3" /><ObjectIdentityQuery Id="5" ObjectPathId="3" /><ObjectPath Id="7" ObjectPathId="6" /><ObjectIdentityQuery Id="8" ObjectPathId="6" /><ObjectPath Id="10" ObjectPathId="9" /><Query Id="11" ObjectPathId="6"><Query SelectAllProperties="true"><Properties /></Query></Query><Query Id="12" ObjectPathId="9"><Query SelectAllProperties="false"><Properties /></Query><ChildItemQuery SelectAllProperties="false"><Properties><Property Name="IsRoot" SelectAll="true" /><Property Name="Labels" SelectAll="true" /><Property Name="TermsCount" SelectAll="true" /><Property Name="CustomSortOrder" SelectAll="true" /><Property Name="Id" SelectAll="true" /><Property Name="Name" SelectAll="true" /><Property Name="PathOfTerm" SelectAll="true" /><Property Name="Parent" SelectAll="true" /><Property Name="LocalCustomProperties" SelectAll="true" /></Properties></ChildItemQuery></Query></Actions><ObjectPaths><StaticMethod Id="0" Name="GetTaxonomySession" TypeId="{981cbc68-9edc-4f8d-872f-71146fcbb84f}" /><Method Id="3" ParentId="0" Name="GetDefaultKeywordsTermStore" /><Method Id="6" ParentId="3" Name="GetTermSet"><Parameters><Parameter Type="Guid">${termsetId}</Parameter></Parameters></Method><Method Id="9" ParentId="6" Name="GetAllTerms" /></ObjectPaths></Request>`;
135+
const data = `<Request xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="Javascript Library"><Actions><ObjectPath Id="1" ObjectPathId="0" /><ObjectIdentityQuery Id="2" ObjectPathId="0" /><ObjectPath Id="4" ObjectPathId="3" /><ObjectIdentityQuery Id="5" ObjectPathId="3" /><ObjectPath Id="7" ObjectPathId="6" /><ObjectIdentityQuery Id="8" ObjectPathId="6" /><ObjectPath Id="10" ObjectPathId="9" /><Query Id="11" ObjectPathId="6"><Query SelectAllProperties="true"><Properties /></Query></Query><Query Id="12" ObjectPathId="9"><Query SelectAllProperties="false"><Properties /></Query><ChildItemQuery SelectAllProperties="false"><Properties><Property Name="IsRoot" SelectAll="true" /><Property Name="Labels" SelectAll="true" /><Property Name="TermsCount" SelectAll="true" /><Property Name="CustomSortOrder" SelectAll="true" /><Property Name="Id" SelectAll="true" /><Property Name="Name" SelectAll="true" /><Property Name="PathOfTerm" SelectAll="true" /><Property Name="Parent" SelectAll="true" /><Property Name="LocalCustomProperties" SelectAll="true" /><Property Name="IsDeprecated" ScalarProperty="true" /><Property Name="IsAvailableForTagging" ScalarProperty="true" /></Properties></ChildItemQuery></Query></Actions><ObjectPaths><StaticMethod Id="0" Name="GetTaxonomySession" TypeId="{981cbc68-9edc-4f8d-872f-71146fcbb84f}" /><Method Id="3" ParentId="0" Name="GetDefaultKeywordsTermStore" /><Method Id="6" ParentId="3" Name="GetTermSet"><Parameters><Parameter Type="Guid">${termsetId}</Parameter></Parameters></Method><Method Id="9" ParentId="6" Name="GetAllTerms" /></ObjectPaths></Request>`;
136136

137137

138138
const reqHeaders = new Headers();

src/webparts/controlsTest/components/ControlsTest.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export default class ControlsTest extends React.Component<IControlsTestProps, IC
241241
termsetNameOrID="b3e9b754-2593-4ae6-abc2-35345402e186"
242242
// anchorId="0ec2f948-3978-499e-9d3f-e51c4494d44c"
243243
// disabledTermIds={["943fd9f0-3d7c-415c-9192-93c0e54573fb", "0e415292-cce5-44ac-87c7-ef99dd1f01f4"]}
244-
disabledTermIds={["943fd9f0-3d7c-415c-9192-93c0e54573fb", "73d18756-20af-41de-808c-2a1e21851e44", "0e415292-cce5-44ac-87c7-ef99dd1f01f4"]}
244+
// disabledTermIds={["943fd9f0-3d7c-415c-9192-93c0e54573fb", "73d18756-20af-41de-808c-2a1e21851e44", "0e415292-cce5-44ac-87c7-ef99dd1f01f4"]}
245245
// disabledTermIds={["cd6f6d3c-672d-4244-9320-c1e64cc0626f", "0e415292-cce5-44ac-87c7-ef99dd1f01f4"]}
246246
// disableChildrenOfDisabledParents={true}
247247
panelTitle="Select Term"

0 commit comments

Comments
 (0)