@@ -170,19 +172,28 @@ function PubDomainRow(props: {
) : (
)}
@@ -200,8 +211,10 @@ function UnassignedDomainRow(props: {
let { mutate: mutateIdentity } = useIdentityData();
let assignment = getDomainAssignment(props.domainData);
let [confirming, setConfirming] = useState(false);
+ let [loading, setLoading] = useState(false);
async function doAssign() {
+ setLoading(true);
mutateIdentityData(mutateIdentity, (draft) => {
let domain = draft.custom_domains.find(
(d) => d.domain === props.domainData.domain,
@@ -248,6 +261,7 @@ function UnassignedDomainRow(props: {