Merge claude/1
This commit is contained in:
commit
7a302d1af0
@ -559,6 +559,7 @@ class BackupPage {
|
|||||||
// Switching tabs always closes the export dropdown.
|
// Switching tabs always closes the export dropdown.
|
||||||
this.toggleExportMenu(false);
|
this.toggleExportMenu(false);
|
||||||
if (this.currentTab === 'locations') {
|
if (this.currentTab === 'locations') {
|
||||||
|
btn.style.display = '';
|
||||||
btn.innerHTML = `
|
btn.innerHTML = `
|
||||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||||
<line x1="12" y1="5" x2="12" y2="19"></line>
|
<line x1="12" y1="5" x2="12" y2="19"></line>
|
||||||
@ -569,6 +570,7 @@ class BackupPage {
|
|||||||
btn.dataset.intent = 'add-location';
|
btn.dataset.intent = 'add-location';
|
||||||
btn.removeAttribute('aria-haspopup');
|
btn.removeAttribute('aria-haspopup');
|
||||||
} else if (this.currentTab === 'configuration') {
|
} else if (this.currentTab === 'configuration') {
|
||||||
|
btn.style.display = '';
|
||||||
btn.innerHTML = `
|
btn.innerHTML = `
|
||||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||||
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
|
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
|
||||||
@ -582,7 +584,8 @@ class BackupPage {
|
|||||||
`;
|
`;
|
||||||
btn.dataset.intent = 'export-menu';
|
btn.dataset.intent = 'export-menu';
|
||||||
btn.setAttribute('aria-haspopup', 'menu');
|
btn.setAttribute('aria-haspopup', 'menu');
|
||||||
} else {
|
} else if (this.currentTab === 'backups') {
|
||||||
|
btn.style.display = '';
|
||||||
btn.innerHTML = `
|
btn.innerHTML = `
|
||||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||||
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
|
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
|
||||||
@ -593,6 +596,10 @@ class BackupPage {
|
|||||||
`;
|
`;
|
||||||
btn.dataset.intent = 'backup-all';
|
btn.dataset.intent = 'backup-all';
|
||||||
btn.removeAttribute('aria-haspopup');
|
btn.removeAttribute('aria-haspopup');
|
||||||
|
} else {
|
||||||
|
// Dashboard and Migrate have no header primary action.
|
||||||
|
btn.style.display = 'none';
|
||||||
|
btn.removeAttribute('aria-haspopup');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user