change some words
This commit is contained in:
parent
0d988007dc
commit
d5edc010e2
|
@ -31,7 +31,7 @@ export const Alert = function({
|
|||
if (message.length > 0) {
|
||||
message.forEach((item, i) => {
|
||||
|
||||
this.element.message.appendChild(node('p:' + item));
|
||||
this.element.message.appendChild(node('p:' + item + '|class:small'));
|
||||
|
||||
});
|
||||
};
|
||||
|
|
|
@ -123,7 +123,11 @@ icon.all = {
|
|||
},
|
||||
info: {
|
||||
name: 'info',
|
||||
path: 'M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'
|
||||
path: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'
|
||||
},
|
||||
warning: {
|
||||
name: 'warning',
|
||||
path: 'M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -126,15 +126,14 @@ dataSetting.clear = (parent) => {
|
|||
}
|
||||
});
|
||||
|
||||
dataSetting.control.clear.alert = new Alert({ iconName: 'info', message: ['You will lose Bookmarks by clearing all data.', 'Have you <a href="#menu-content-item-backup">backed up your data?</a>'] });
|
||||
dataSetting.control.clear.alert = new Alert({ iconName: 'warning', message: ['You will lose Bookmarks by clearing all data.', 'Have you <a href="#menu-content-item-backup">backed up your data?</a>'] });
|
||||
|
||||
dataSetting.control.clear.helper = new Control_helperText({
|
||||
text: ['Wipe all data and restore ' + appName + ' to the default state.', 'Alternatively it is possible to wipe all settings but keep the current Bookmarks and Groups.']
|
||||
text: ['Wipe all data to restore ' + appName + ' to the default state.', 'Alternatively, it is possible to wipe all settings but keep the current Bookmarks and Groups.']
|
||||
});
|
||||
|
||||
parent.appendChild(
|
||||
node('div', [
|
||||
dataSetting.control.clear.alert.wrap(),
|
||||
form.wrap({
|
||||
children: [
|
||||
form.inline({
|
||||
|
@ -148,6 +147,7 @@ dataSetting.clear = (parent) => {
|
|||
})
|
||||
]
|
||||
}),
|
||||
dataSetting.control.clear.alert.wrap(),
|
||||
dataSetting.control.clear.helper.wrap()
|
||||
])
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue