diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-12-28 15:29:54 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-01-04 16:46:14 +0100 |
commit | 5b9a8f0407a9e3fe7e00f0fc9284ea986905f1b5 (patch) | |
tree | 1363678dab6ed5e1554a7a74bc8a6a1a55bdf785 /apps/files/js/app.js | |
parent | 8f1bf13ae3046400ce6248fb13e5515e8e9ed5c4 (diff) | |
download | nextcloud-server-5b9a8f0407a9e3fe7e00f0fc9284ea986905f1b5.tar.gz nextcloud-server-5b9a8f0407a9e3fe7e00f0fc9284ea986905f1b5.zip |
Add component testing
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/js/app.js')
-rw-r--r-- | apps/files/js/app.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/files/js/app.js b/apps/files/js/app.js index 36d80c03770..f0c3ac5c212 100644 --- a/apps/files/js/app.js +++ b/apps/files/js/app.js @@ -136,7 +136,6 @@ this._setupEvents(); // trigger URL change event handlers - console.debug('F2V init', { ...OC.Util.History.parseUrlQuery(), view: this.navigation?.active?.id }) this._onPopState({ ...OC.Util.History.parseUrlQuery(), view: this.navigation?.active?.id }); this._debouncedPersistShowHiddenFilesState = _.debounce(this._persistShowHiddenFilesState, 1200); @@ -310,7 +309,6 @@ * Event handler for when the URL changed */ _onPopState: function(params) { - console.debug('F2V onPopState', params); params = _.extend({ dir: '/', view: 'files' @@ -348,7 +346,6 @@ * Change the URL to point to the given dir and view */ _changeUrl: function(view, dir, fileId) { - console.debug('F2V changeUrl', { arguments }); var params = { dir: dir }; if (view !== 'files') { params.view = view; @@ -359,16 +356,13 @@ if (currentParams.dir === params.dir && currentParams.view === params.view) { if (currentParams.fileid !== params.fileid) { // if only fileid changed or was added, replace instead of push - console.debug('F2V 1', currentParams.fileid, params.fileid, params); OC.Util.History.replaceState(this._makeUrlParams(params)); return } } else { - console.debug('F2V 2', params); OC.Util.History.pushState(this._makeUrlParams(params)); return } - console.debug('F2V 3', params, currentParams); }, /** |