mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
show MSK trust status in settings after enabling key backup
This commit is contained in:
parent
fdce098245
commit
45d45cb690
@ -88,6 +88,10 @@ export class KeyBackupViewModel extends ViewModel {
|
|||||||
return this._session.keyBackup.get()?.version;
|
return this._session.keyBackup.get()?.version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isMasterKeyTrusted() {
|
||||||
|
return this._session.crossSigning?.isMasterKeyTrusted ?? false;
|
||||||
|
}
|
||||||
|
|
||||||
get backupWriteStatus() {
|
get backupWriteStatus() {
|
||||||
const keyBackup = this._session.keyBackup.get();
|
const keyBackup = this._session.keyBackup.get();
|
||||||
if (!keyBackup) {
|
if (!keyBackup) {
|
||||||
|
@ -53,6 +53,9 @@ export class KeyBackupSettingsView extends TemplateView {
|
|||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
}),
|
||||||
|
t.if(vm => vm.isMasterKeyTrusted, t => {
|
||||||
|
return t.p("Cross-signing master key found and trusted.")
|
||||||
})
|
})
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ export class SettingsView extends TemplateView {
|
|||||||
}, vm.i18n`Log out`)),
|
}, vm.i18n`Log out`)),
|
||||||
);
|
);
|
||||||
settingNodes.push(
|
settingNodes.push(
|
||||||
t.h3("Key backup"),
|
t.h3("Key backup & security"),
|
||||||
t.view(new KeyBackupSettingsView(vm.keyBackupViewModel))
|
t.view(new KeyBackupSettingsView(vm.keyBackupViewModel))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user