Merge pull request #299 from EdouardVanbelle/fixes
This commit is contained in:
@@ -42,6 +42,9 @@
|
|||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
margin-right: 12px;
|
||||||
|
height: 60px;
|
||||||
|
transform: translateY(-8px);
|
||||||
transition:
|
transition:
|
||||||
opacity 0.2s,
|
opacity 0.2s,
|
||||||
max-height 0.25s,
|
max-height 0.25s,
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ export const app = {
|
|||||||
contextMenuTargetFile: null,
|
contextMenuTargetFile: null,
|
||||||
selectedTargetFolderId: '',
|
selectedTargetFolderId: '',
|
||||||
moveDialogMode: 'file',
|
moveDialogMode: 'file',
|
||||||
|
|
||||||
currentSection: null, // will be defined on first call
|
currentSection: null, // will be defined on first call
|
||||||
isSearchMode: false,
|
isSearchMode: false,
|
||||||
shareDialogItem: null,
|
shareDialogItem: null,
|
||||||
|
|||||||
@@ -1309,9 +1309,6 @@ const ui = {
|
|||||||
|
|
||||||
filesList.classList.remove('hidden');
|
filesList.classList.remove('hidden');
|
||||||
filesContainerError?.classList.add('hidden');
|
filesContainerError?.classList.add('hidden');
|
||||||
|
|
||||||
// apply hook as header changed
|
|
||||||
multiSelect.init();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
showEmptyList() {
|
showEmptyList() {
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ const multiSelect = {
|
|||||||
// Sync individual item checkboxes
|
// Sync individual item checkboxes
|
||||||
this._syncItemCheckboxes();
|
this._syncItemCheckboxes();
|
||||||
// Sync select-all checkbox state (for non-selection-mode)
|
// Sync select-all checkbox state (for non-selection-mode)
|
||||||
if (!this._barVisible) this._syncSelectAllCheckbox();
|
this._syncSelectAllCheckbox();
|
||||||
},
|
},
|
||||||
|
|
||||||
/** Wire click handlers on batch action buttons (idempotent per render) */
|
/** Wire click handlers on batch action buttons (idempotent per render) */
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
import { ui } from '../../app/ui.js';
|
import { ui } from '../../app/ui.js';
|
||||||
import { getCsrfHeaders } from '../../core/csrf.js';
|
import { getCsrfHeaders } from '../../core/csrf.js';
|
||||||
import { i18n } from '../../core/i18n.js';
|
import { i18n } from '../../core/i18n.js';
|
||||||
|
import { multiSelect } from '../files/multiSelect.js';
|
||||||
|
|
||||||
const favorites = {
|
const favorites = {
|
||||||
/** @type {Map<string, object>} key = "file:<id>" | "folder:<id>" */
|
/** @type {Map<string, object>} key = "file:<id>" | "folder:<id>" */
|
||||||
@@ -172,6 +173,10 @@ const favorites = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ui.resetFilesList(); // ensure also list visible & error hidden
|
ui.resetFilesList(); // ensure also list visible & error hidden
|
||||||
|
// wire buttons & select-all-checkbox as list header has changed in ui.resetFilesList()
|
||||||
|
// FIXME: this case is not easy to understand, should apply better implementation
|
||||||
|
multiSelect.init();
|
||||||
|
|
||||||
ui.updateBreadcrumb('');
|
ui.updateBreadcrumb('');
|
||||||
|
|
||||||
if (this._cache.size === 0) {
|
if (this._cache.size === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user