Change: x -> Delete
This commit is contained in:
parent
c0fd7c53b7
commit
b1d7abf503
|
@ -1655,6 +1655,9 @@
|
||||||
"styleIncludeNewLabel": {
|
"styleIncludeNewLabel": {
|
||||||
"message": "Add new inclusion rule"
|
"message": "Add new inclusion rule"
|
||||||
},
|
},
|
||||||
|
"styleIncludeDeleteLabel": {
|
||||||
|
"message": "Delete"
|
||||||
|
},
|
||||||
"styleExcludeLabel": {
|
"styleExcludeLabel": {
|
||||||
"message": "User defined exclusion"
|
"message": "User defined exclusion"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* global API */
|
/* global API t */
|
||||||
/* exported StyleSettings */
|
/* exported StyleSettings */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ function StyleSettings(editor) {
|
||||||
table.append(input);
|
table.append(input);
|
||||||
|
|
||||||
const delButton = document.createElement('button');
|
const delButton = document.createElement('button');
|
||||||
delButton.textContent = 'x';
|
delButton.textContent = t('styleIncludeDeleteLabel');
|
||||||
delButton.addEventListener('click', () => {
|
delButton.addEventListener('click', () => {
|
||||||
style[type].splice(i, 1);
|
style[type].splice(i, 1);
|
||||||
API.styles.config(style.id, type, style[type]);
|
API.styles.config(style.id, type, style[type]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user