commit updates

This commit is contained in:
João Mendes 2020-07-28 10:04:49 +01:00
parent b506f51222
commit e71cc91c32
3 changed files with 10 additions and 16 deletions

View File

@ -36,7 +36,7 @@ import { ILocalizationExtended } from "../../Entities/IlocalizationExtended";
import strings from "ManageProfileCardPropertiesWebPartStrings";
// Component
// Add Profile Property Component
// Edit Profile Property Component
export const EditProfileCardProperty: React.FunctionComponent<IEditProfileCardPropertyProps> = (
props: IEditProfileCardPropertyProps
@ -278,7 +278,7 @@ export const EditProfileCardProperty: React.FunctionComponent<IEditProfileCardPr
) {
disableAddButton = false;
}
// Render Component
return (
<div>
<PrimaryButton
@ -407,9 +407,7 @@ export const EditProfileCardProperty: React.FunctionComponent<IEditProfileCardPr
localizations = annotations[0].localizations;
}
}
/* if (!directoryPropertyName) {
directoryPropertyName = directoryPropertyOptions[0].key.toString();
} */
//************************************************************************************************* */
// Render Control
//************************************************************************************************* */

View File

@ -16,6 +16,7 @@ const searchtyles: ISearchBoxStyles = {
export const ListCommandBar: React.FunctionComponent<IListCommandBarProps> = (
props: IListCommandBarProps
) => {
const _applicationContext = React.useContext(AppContext);
const {} = _applicationContext;
const { selectedItem } = props;
@ -25,13 +26,17 @@ export const ListCommandBar: React.FunctionComponent<IListCommandBarProps> = (
let _disableDelete: boolean = true;
let _disableView: boolean = true;
if (selectedItem) {
_disableEdit = false;
_disableDelete = false;
_disableView = false;
}
//
useEffect(() => {});
// On clear Search
const _onClear = () => {
let _searchCondition: string = "";
props.onSearch(_searchCondition);
@ -41,6 +46,7 @@ export const ListCommandBar: React.FunctionComponent<IListCommandBarProps> = (
props.onSearch(value);
};
// CommandBar Options
const _items: ICommandBarItemProps[] = [
{
key: "newItem",
@ -72,7 +78,7 @@ export const ListCommandBar: React.FunctionComponent<IListCommandBarProps> = (
onClick: () => props.onActionSelected("Delete"),
},
];
// FarItems
const _farItems: ICommandBarItemProps[] = [
{
key: "search",
@ -99,15 +105,6 @@ export const ListCommandBar: React.FunctionComponent<IListCommandBarProps> = (
iconProps: { iconName: "Refresh" },
onClick: () => props.onActionSelected("Refresh"),
},
/* {
key: "filter",
text: "Filter",
// This needs an ariaLabel since it's icon-only
ariaLabel: "filter",
iconOnly: true,
iconProps: { iconName: "Filter" },
onClick: () => console.log("Info"),
}, */
];
return (

View File

@ -7,6 +7,5 @@ export const useGetOrganization = async (msGraphClient: MSGraphClient):Promise<I
.api(`/organization`)
.version("beta")
.get();
console.log(_organization.value);
return _organization.value[0];
};