This commit is contained in:
parent
65845c6c6e
commit
52d3387c6a
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -137,7 +137,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -213,7 +213,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
"description": "Confirmation before deleting a style"
|
"description": "Confirmation before deleting a style"
|
||||||
},
|
},
|
||||||
"confirmOK": {
|
"confirmOK": {
|
||||||
"message": "OK"
|
"message": "Delete"
|
||||||
},
|
},
|
||||||
"confirmCancel": {
|
"confirmCancel": {
|
||||||
"message": "Cancel"
|
"message": "Cancel"
|
||||||
|
|
|
@ -254,6 +254,12 @@ body>div:not(#installed) {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
|
#confirm>div>b {
|
||||||
|
padding: 10px;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
#confirm>div>div {
|
#confirm>div>div {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
direction: rtl;
|
direction: rtl;
|
||||||
|
|
|
@ -70,6 +70,7 @@
|
||||||
<!-- confirm -->
|
<!-- confirm -->
|
||||||
<div id="confirm">
|
<div id="confirm">
|
||||||
<div>
|
<div>
|
||||||
|
<b>Style's Name</b>
|
||||||
<span i18n-text="deleteStyleConfirm"></span>
|
<span i18n-text="deleteStyleConfirm"></span>
|
||||||
<div>
|
<div>
|
||||||
<input type="button" i18n-value="confirmOK" data-cmd="ok">
|
<input type="button" i18n-value="confirmOK" data-cmd="ok">
|
||||||
|
|
2
popup.js
2
popup.js
|
@ -118,6 +118,8 @@ function enable(event, enabled) {
|
||||||
function doDelete() {
|
function doDelete() {
|
||||||
document.getElementById('confirm').dataset.display = true;
|
document.getElementById('confirm').dataset.display = true;
|
||||||
let id = getId(event);
|
let id = getId(event);
|
||||||
|
document.querySelector('#confirm b').textContent =
|
||||||
|
document.querySelector(`[style-id="${id}"] label`).textContent;
|
||||||
document.getElementById('confirm').dataset.id = id;
|
document.getElementById('confirm').dataset.id = id;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user