added delete profile button
This commit is contained in:
@@ -10,6 +10,7 @@ Alpine.data('popup', () => ({
|
||||
profileIndex: 0,
|
||||
visibleKey: false,
|
||||
confirmClear: false,
|
||||
confirmDelete: false,
|
||||
|
||||
async init() {
|
||||
console.log("Initializing backend.");
|
||||
@@ -88,6 +89,12 @@ Alpine.data('popup', () => ({
|
||||
this.confirmClear = false;
|
||||
},
|
||||
|
||||
async deleteProfile() {
|
||||
await browser.runtime.sendMessage({kind: 'deleteProfile'});
|
||||
await this.init();
|
||||
this.confirmDelete = false;
|
||||
},
|
||||
|
||||
// Properties
|
||||
|
||||
get hasValidPubKey() {
|
||||
|
||||
Reference in New Issue
Block a user