mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-06-30 22:30:38 +02:00
improve export data naming
This commit is contained in:
@ -103,7 +103,7 @@ dataSetting.restore = (parent) => {
|
|||||||
|
|
||||||
dataSetting.backup = (parent) => {
|
dataSetting.backup = (parent) => {
|
||||||
|
|
||||||
dataSetting.control.backup.button = new Button({
|
dataSetting.control.backup.export = new Button({
|
||||||
text: 'Export data',
|
text: 'Export data',
|
||||||
style: ['line'],
|
style: ['line'],
|
||||||
func: () => {
|
func: () => {
|
||||||
@ -111,14 +111,22 @@ dataSetting.backup = (parent) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
dataSetting.control.backup.buttonHelper = new Control_helperText({
|
// dataSetting.control.backup.copy = new Button({
|
||||||
|
// text: 'Copy data to clipboard',
|
||||||
|
// style: ['line'],
|
||||||
|
// func: () => {
|
||||||
|
// navigator.clipboard.writeText(JSON.stringify(data.load()));
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
|
dataSetting.control.backup.exportHelper = new Control_helperText({
|
||||||
text: ['Download a backup of your ' + appName + ' Bookmarks and Settings.', 'This file can later be imported on this or another deivce.']
|
text: ['Download a backup of your ' + appName + ' Bookmarks and Settings.', 'This file can later be imported on this or another deivce.']
|
||||||
});
|
});
|
||||||
|
|
||||||
parent.appendChild(
|
parent.appendChild(
|
||||||
node('div', [
|
node('div', [
|
||||||
dataSetting.control.backup.button.wrap(),
|
dataSetting.control.backup.copy.wrap(),
|
||||||
dataSetting.control.backup.buttonHelper.wrap()
|
dataSetting.control.backup.exportHelper.wrap()
|
||||||
])
|
])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user