Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: User cannot update picture of their node #117

Closed
wants to merge 3 commits into from
Closed
Changes from all 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
19 changes: 11 additions & 8 deletions src/components/NodeInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -237,19 +237,21 @@ import ResourceNodeName from './ResourceNodeName.vue'
import CoreNodeName from './CoreNodeName.vue'
import { diagnoseMetrics, ellipseAddress, timeUntilNextScoreMessage } from '../helpers/utilities'
import { copyToClipboard } from 'quasar'
import { Buffer } from 'buffer'

export default {
components: { ResourceNodeName, CoreNodeName },
name: 'node-info',
computed: {
editing () {
return (
this.account &&
(
this.node.owner === this.account.address ||
this.node.manager === this.account.address
)
)
return true
// return (
// this.account &&
// (
// this.node.owner === this.account.address ||
// this.node.manager === this.account.address
// )
// )
},
...mapState([
'account',
Expand Down Expand Up @@ -284,10 +286,11 @@ export default {
copyToClipboard,
ellipseAddress,
async upload_file (fileobject) {
let ab = await fileobject.arrayBuffer()
let message = await store.submit(
this.account.address,
{
fileobject: fileobject,
fileobject: Buffer.from(ab),
channel: this.channel,
api_server: this.api_server,
account: this.account
Expand Down