added some more device actions including interactions stuff
This commit is contained in:
parent
e4cc9b3554
commit
59d9bf2e6b
10 changed files with 381 additions and 34 deletions
|
|
@ -210,12 +210,11 @@ export default function BinYard(props: Props) {
|
|||
const [leaving, setLeaving] = useState<boolean>(false);
|
||||
const [yardPermissions, setYardPermissions] = useState<Dictionary<pond.Permission[]>>({});
|
||||
const [searchSelected, setSearchSelected] = useState(false);
|
||||
const [{ user, as }] = useGlobalState();
|
||||
const [{ user }] = useGlobalState();
|
||||
const [addingYard, setAddingYard] = useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
if (props.yards && props.yardPerms) {
|
||||
console.log(props.yards)
|
||||
setBinYards(props.yards);
|
||||
setYardPermissions(props.yardPerms);
|
||||
return;
|
||||
|
|
@ -249,7 +248,6 @@ export default function BinYard(props: Props) {
|
|||
setBinYards(newYards)
|
||||
setShowAddYard(false);
|
||||
newBinYard.key = resp.data.yard
|
||||
console.log(resp.data.yard)
|
||||
|
||||
let newYardPermissions: Dictionary<pond.Permission[]> = { ...yardPermissions };
|
||||
newYardPermissions[newBinYard.key] = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue