Fix popup inline style install/uninstall
This commit is contained in:
parent
59c02dfbed
commit
1ff89acda3
|
@ -252,6 +252,7 @@ const styleManager = (() => {
|
||||||
method,
|
method,
|
||||||
style: {
|
style: {
|
||||||
id: data.id,
|
id: data.id,
|
||||||
|
md5Url: data.md5Url,
|
||||||
enabled: data.enabled
|
enabled: data.enabled
|
||||||
},
|
},
|
||||||
reason,
|
reason,
|
||||||
|
|
|
@ -132,7 +132,7 @@ window.addEventListener('showStyles:done', function _() {
|
||||||
}, {passive: true});
|
}, {passive: true});
|
||||||
}
|
}
|
||||||
|
|
||||||
addEventListener('styleDeleted', ({detail: {id}}) => {
|
addEventListener('styleDeleted', ({detail: {style: {id}}}) => {
|
||||||
const result = processedResults.find(r => r.installedStyleId === id);
|
const result = processedResults.find(r => r.installedStyleId === id);
|
||||||
if (result) {
|
if (result) {
|
||||||
result.installed = false;
|
result.installed = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user