Show local identities in the ssb app.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3964 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-08-15 02:23:45 +00:00
parent 69991abbb4
commit 357d944a8d
9 changed files with 116 additions and 5 deletions

View File

@ -464,6 +464,7 @@ async function refresh_internal(whoami, selected, force) {
g_following_deep_cache = {};
await tfrpc.rpc.clear();
await tfrpc.rpc.set_identities(await ssb.getIdentities());
await tfrpc.rpc.set('all_identities', await ssb.getAllIdentities());
await tfrpc.rpc.set('selected', selected);
var db = await database("ssb");
g_sequence = {};

View File

@ -189,6 +189,8 @@
<md-subheader>Connections</md-subheader>
<md-list-item v-for="connection in connections" v-bind:key="'connection-' + JSON.stringify(connection)"><tf-user :id="connection"></tf-user></md-list-item>
<md-list-item @click="show_connect_dialog = true">Connect</md-list-item>
<md-subheader>Local Accounts</md-subheader>
<md-list-item v-for="identity in all_identities" v-bind:key="'connection-identity-' + identity"><tf-user :id="identity"></tf-user></md-list-item>
</md-list>
</md-tab>
</md-tabs>

View File

@ -4,6 +4,7 @@ import * as tfshared from './tf-shared.js';
export var g_data = {
whoami: null,
selected: null,
all_identities: [],
identities: [],
connections: [],
messages: [],