Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This project _loosely_ adheres to [Semantic Versioning](https://semver.org/spec/
### Removed

### Fixed
- [launcher] Trusted agent popup now works correctly & Fixed language actions [PR#273](https://github.com/perspect3vism/ad4m/pull/273)

## [0.2.16] - 25/02/2013
### Added
Expand Down
6 changes: 3 additions & 3 deletions ui/src/components/Language.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const Language = (props: Props) => {
const installLanguage = async () => {
setLoading(true);
try {
if (languageBundlePath) {
if (languageHash) {
await client!.languages.byAddress(languageHash);

await getLanguages();
Expand Down Expand Up @@ -234,13 +234,13 @@ const Language = (props: Props) => {
<j-flex a="center" gap="200">
<j-button
variant="link"
onClick={() => setInstallLanguageModalOpen(false)}
onClick={() => setPublishLanguageModalOpen(false)}
>
Cancel
</j-button>
<j-button
variant="primary"
onClick={installLanguage}
onClick={publishLanguage}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is for installing a language, it should not be calling publish right?

loading={loading}
>
Install
Expand Down
6 changes: 1 addition & 5 deletions ui/src/components/TrustAgent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ const TrustAgent = (props: Props) => {
client
}} = useContext(Ad4minContext);

const [opened, setOpened] = useState(false);

useEffect(() => {
setOpened(true);
}, []);
const [opened, setOpened] = useState(true);

const addTrustedAgent = async () => {
let agents = await client!.runtime.addTrustedAgents([props.candidate]);
Expand Down