mirror of
https://github.com/Qortal/chrome-extension.git
synced 2025-02-11 17:55:49 +00:00
fix publish
This commit is contained in:
parent
f2c252bdcf
commit
f464a5b049
@ -162,7 +162,7 @@ export const ListOfGroupPromotions = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await Promise.all(getPromos);
|
await Promise.all(getPromos);
|
||||||
const groupWithInfo = await getGroupNames(data);
|
const groupWithInfo = await getGroupNames(data.sort((a, b) => b.created - a.created));
|
||||||
setPromotions(groupWithInfo);
|
setPromotions(groupWithInfo);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
@ -548,10 +548,10 @@ export const ListOfGroupPromotions = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
|
||||||
onClick={(event) => handlePopoverOpen(event, promotion?.groupId)}
|
onClick={(event) => handlePopoverOpen(event, promotion?.groupId)}
|
||||||
sx={{
|
sx={{
|
||||||
fontSize: "12px",
|
fontSize: "12px",
|
||||||
|
color: 'white'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Join Group: {` ${promotion?.groupName}`}
|
Join Group: {` ${promotion?.groupName}`}
|
||||||
@ -687,7 +687,7 @@ export const ListOfGroupPromotions = () => {
|
|||||||
aria-describedby="alert-dialog-description"
|
aria-describedby="alert-dialog-description"
|
||||||
>
|
>
|
||||||
<DialogTitle id="alert-dialog-title">
|
<DialogTitle id="alert-dialog-title">
|
||||||
{"Publish Group Promotion"}
|
{"Promote your group to non-members"}
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogContentText id="alert-dialog-description">
|
<DialogContentText id="alert-dialog-description">
|
||||||
|
@ -50,9 +50,9 @@ export const ThingsToDoInitial = ({ myAddress, name, hasGroups, balance, userInf
|
|||||||
|
|
||||||
|
|
||||||
const isLoaded = React.useMemo(()=> {
|
const isLoaded = React.useMemo(()=> {
|
||||||
if(balance !== null && userInfo !== null) return true
|
if(userInfo !== null) return true
|
||||||
return false
|
return false
|
||||||
}, [balance, userInfo])
|
}, [userInfo])
|
||||||
|
|
||||||
const hasDoneNameAndBalanceAndIsLoaded = React.useMemo(()=> {
|
const hasDoneNameAndBalanceAndIsLoaded = React.useMemo(()=> {
|
||||||
if(isLoaded && checked1 && checked2) return true
|
if(isLoaded && checked1 && checked2) return true
|
||||||
|
@ -717,9 +717,7 @@ export const publishQDNResource = async (data: any, sender, isFromExtension) =>
|
|||||||
}, isFromExtension);
|
}, isFromExtension);
|
||||||
const { accepted } = resPermission;
|
const { accepted } = resPermission;
|
||||||
if (accepted) {
|
if (accepted) {
|
||||||
if (data.fileId && !data.encrypt) {
|
|
||||||
data64 = await getFileFromContentScript(data.fileId, sender);
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
const resPublish = await publishData({
|
const resPublish = await publishData({
|
||||||
registeredName: encodeURIComponent(name),
|
registeredName: encodeURIComponent(name),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user