Change: x -> Delete

This commit is contained in:
eight04 2021-12-05 00:24:25 +08:00
parent c0fd7c53b7
commit b1d7abf503
2 changed files with 5 additions and 2 deletions

View File

@ -1655,6 +1655,9 @@
"styleIncludeNewLabel": {
"message": "Add new inclusion rule"
},
"styleIncludeDeleteLabel": {
"message": "Delete"
},
"styleExcludeLabel": {
"message": "User defined exclusion"
},

View File

@ -1,4 +1,4 @@
/* global API */
/* global API t */
/* exported StyleSettings */
'use strict';
@ -79,7 +79,7 @@ function StyleSettings(editor) {
table.append(input);
const delButton = document.createElement('button');
delButton.textContent = 'x';
delButton.textContent = t('styleIncludeDeleteLabel');
delButton.addEventListener('click', () => {
style[type].splice(i, 1);
API.styles.config(style.id, type, style[type]);