ssb: Remove the react confirmation dialog.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 26m34s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 26m34s
This commit is contained in:
parent
6eec142499
commit
364e95698e
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"type": "tildefriends-app",
|
"type": "tildefriends-app",
|
||||||
"emoji": "🦀",
|
"emoji": "🦀",
|
||||||
"previous": "&Ac5CtEBoIbQ8wM4FuIfTfF7j7U3Eb3C2BS9P72WyOFw=.sha256"
|
"previous": "&qe6da4WrU2hQ3nDaZk87SAccuUpGNP5rPCh5P5bRmxk=.sha256"
|
||||||
}
|
}
|
||||||
|
@ -268,16 +268,6 @@ class TfElement extends LitElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async create_identity() {
|
|
||||||
if (confirm('Are you sure you want to create a new identity?')) {
|
|
||||||
await tfrpc.rpc.createIdentity();
|
|
||||||
this.ids = (await tfrpc.rpc.getIdentities()) || [];
|
|
||||||
if (this.ids && !this.whoami) {
|
|
||||||
this.whoami = this.ids[0];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async get_latest_private(following) {
|
async get_latest_private(following) {
|
||||||
const k_version = 1;
|
const k_version = 1;
|
||||||
// { "version": 1, "range": [1234, 5678], messages: [ "%1.sha256", "%2.sha256", ... ], latest: rowid }
|
// { "version": 1, "range": [1234, 5678], messages: [ "%1.sha256", "%2.sha256", ... ], latest: rowid }
|
||||||
|
@ -121,28 +121,18 @@ class TfMessageElement extends LitElement {
|
|||||||
vote(emoji) {
|
vote(emoji) {
|
||||||
let reaction = emoji;
|
let reaction = emoji;
|
||||||
let message = this.message.id;
|
let message = this.message.id;
|
||||||
if (
|
tfrpc.rpc
|
||||||
confirm(
|
.appendMessage(this.whoami, {
|
||||||
'Are you sure you want to react with ' +
|
type: 'vote',
|
||||||
reaction +
|
vote: {
|
||||||
' to ' +
|
link: message,
|
||||||
message +
|
value: 1,
|
||||||
'?'
|
expression: reaction,
|
||||||
)
|
},
|
||||||
) {
|
})
|
||||||
tfrpc.rpc
|
.catch(function (error) {
|
||||||
.appendMessage(this.whoami, {
|
alert(error?.message);
|
||||||
type: 'vote',
|
});
|
||||||
vote: {
|
|
||||||
link: message,
|
|
||||||
value: 1,
|
|
||||||
expression: reaction,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.catch(function (error) {
|
|
||||||
alert(error?.message);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
react(event) {
|
react(event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user