change menu item name

This commit is contained in:
zombieFox
2021-08-21 09:20:21 +01:00
parent b3edb38b33
commit bdd4982331
2 changed files with 12 additions and 12 deletions

View File

@ -24,7 +24,7 @@ menu.navData = [
{ name: 'Bookmark', active: false, overscroll: true, sub: ['General', 'Style', 'Orientation', 'Sort'] }, { name: 'Bookmark', active: false, overscroll: true, sub: ['General', 'Style', 'Orientation', 'Sort'] },
{ name: 'Group', active: false, overscroll: true, sub: ['Alignment', 'Name', 'Open All'] }, { name: 'Group', active: false, overscroll: true, sub: ['Alignment', 'Name', 'Open All'] },
{ name: 'Toolbar', active: false, overscroll: true, sub: ['Size', 'Location', 'Position', 'Controls'] }, { name: 'Toolbar', active: false, overscroll: true, sub: ['Size', 'Location', 'Position', 'Controls'] },
{ name: 'Data', active: false, overscroll: true, sub: ['Import', 'Backup', 'Clear'] }, { name: 'Data', active: false, overscroll: true, sub: ['Restore', 'Backup', 'Clear'] },
{ name: 'Coffee', active: false, overscroll: false }, { name: 'Coffee', active: false, overscroll: false },
{ name: appName, active: false, overscroll: false } { name: appName, active: false, overscroll: false }
]; ];

View File

@ -43,39 +43,39 @@ import { applyCSSState } from '../../../utility/applyCSSState';
const dataSetting = {}; const dataSetting = {};
dataSetting.control = { dataSetting.control = {
import: {}, restore: {},
backup: {}, backup: {},
clear: {} clear: {}
}; };
dataSetting.import = (parent) => { dataSetting.restore = (parent) => {
const importFeedback = form.feedback(); const restoreFeedback = form.feedback();
data.feedback.empty.render(importFeedback); data.feedback.empty.render(restoreFeedback);
dataSetting.control.import.importElement = new Control_inputButton({ dataSetting.control.restore.restoreElement = new Control_inputButton({
id: 'import-data', id: 'restore-data',
type: 'file', type: 'file',
inputHide: true, inputHide: true,
labelText: 'Import data', labelText: 'Import data',
inputButtonStyle: ['line'], inputButtonStyle: ['line'],
action: () => { action: () => {
data.import.file(dataSetting.control.import.importElement.input, importFeedback) data.import.file(dataSetting.control.restore.restoreElement.input, restoreFeedback)
} }
}); });
dataSetting.control.import.importHelper = new Control_helperText({ dataSetting.control.restore.restoreHelper = new Control_helperText({
text: ['Restore a previously exported ' + appName + ' backup.'] text: ['Restore a previously exported ' + appName + ' backup.']
}); });
parent.appendChild( parent.appendChild(
node('div', [ node('div', [
dataSetting.control.import.importElement.wrap(), dataSetting.control.restore.restoreElement.wrap(),
dataSetting.control.import.importHelper.wrap(), dataSetting.control.restore.restoreHelper.wrap(),
form.wrap({ form.wrap({
children: [ children: [
importFeedback restoreFeedback
] ]
}) })
]) ])