@@ -8,7 +8,7 @@ import { IPickerTerms, IPickerTerm } from './ITermPicker';
8
8
import { ITaxonomyPickerProps , ITaxonomyPickerState } from './ITaxonomyPicker' ;
9
9
import SPTermStorePickerService from './../../services/SPTermStorePickerService' ;
10
10
import { ITermSet , ITerm } from './../../services/ISPTermStorePickerService' ;
11
-
11
+ import * as strings from 'ControlStrings' ;
12
12
import styles from './TaxonomyPicker.module.scss' ;
13
13
import { sortBy , uniqBy , cloneDeep , isEqual } from '@microsoft/sp-lodash-subset' ;
14
14
import TermParent from './TermParent' ;
@@ -294,9 +294,8 @@ export class TaxonomyPicker extends React.Component<ITaxonomyPickerProps, ITaxon
294
294
onRenderFooterContent = { ( ) => {
295
295
return (
296
296
< div className = { styles . actions } >
297
- < PrimaryButton iconProps = { { iconName : 'Save' } } text = "Save" value = "Save" onClick = { this . onSave } />
298
-
299
- < DefaultButton iconProps = { { iconName : 'Cancel' } } text = "Cancel" value = "Cancel" onClick = { this . onClosePanel } />
297
+ < PrimaryButton iconProps = { { iconName : 'Save' } } text = { strings . SaveButtonLabel } value = "Save" onClick = { this . onSave } />
298
+ < DefaultButton iconProps = { { iconName : 'Cancel' } } text = { strings . CancelButtonLabel } value = "Cancel" onClick = { this . onClosePanel } />
300
299
</ div >
301
300
) ;
302
301
} } >
@@ -310,20 +309,20 @@ export class TaxonomyPicker extends React.Component<ITaxonomyPickerProps, ITaxon
310
309
< div key = { this . state . termSetAndTerms . Id } >
311
310
< h3 > { this . state . termSetAndTerms . Name } </ h3 >
312
311
< TermParent anchorId = { this . props . anchorId }
313
- autoExpand = { null }
314
- termset = { this . state . termSetAndTerms }
315
- isTermSetSelectable = { this . props . isTermSetSelectable }
316
- termSetSelectedChange = { this . termSetSelectedChange }
317
- activeNodes = { this . state . activeNodes }
318
- disabledTermIds = { this . props . disabledTermIds }
319
- disableChildrenOfDisabledParents = { this . props . disableChildrenOfDisabledParents }
320
- changedCallback = { this . termsChanged }
321
- multiSelection = { this . props . allowMultipleSelections }
322
- spTermService = { this . termsService }
323
-
324
- updateTaxonomyTree = { this . updateTaxonomyTree }
325
- termActions = { this . props . termActions }
326
- />
312
+ autoExpand = { null }
313
+ termset = { this . state . termSetAndTerms }
314
+ isTermSetSelectable = { this . props . isTermSetSelectable }
315
+ termSetSelectedChange = { this . termSetSelectedChange }
316
+ activeNodes = { this . state . activeNodes }
317
+ disabledTermIds = { this . props . disabledTermIds }
318
+ disableChildrenOfDisabledParents = { this . props . disableChildrenOfDisabledParents }
319
+ changedCallback = { this . termsChanged }
320
+ multiSelection = { this . props . allowMultipleSelections }
321
+ spTermService = { this . termsService }
322
+
323
+ updateTaxonomyTree = { this . updateTaxonomyTree }
324
+ termActions = { this . props . termActions }
325
+ />
327
326
</ div >
328
327
)
329
328
}
0 commit comments