-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(files): Drop unneeded initial state #47016
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐘
/compile |
The rebase broke |
That was the UI toggle 👀 |
@@ -42,13 +42,21 @@ | |||
public function run(): SetupResult { | |||
$datadir = str_replace(\OC::$SERVERROOT . '/', '', $this->config->getSystemValue('datadirectory', '')); | |||
|
|||
$dataUrl = $this->urlGenerator->getWebroot() . '/' . $datadir . '/.ocdata'; | |||
$dataUrl = $this->urlGenerator->getWebroot() . '/' . $datadir . '/.ncdata'; |
Check notice
Code scanning / Psalm
PossiblyInvalidOperand Note
cc9b030
to
c6c919a
Compare
Fixed. |
/compile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
To make eslint happy:
diff --git a/apps/files/src/components/FilesListVirtual.vue b/apps/files/src/components/FilesListVirtual.vue
index f0ac8ba3d70..cb38d744738 100644
--- a/apps/files/src/components/FilesListVirtual.vue
+++ b/apps/files/src/components/FilesListVirtual.vue
@@ -64,7 +64,6 @@ import type { UserConfig } from '../types'
import { getFileListHeaders, Folder, View, getFileActions, FileType } from '@nextcloud/files'
import { showError } from '@nextcloud/dialogs'
-import { loadState } from '@nextcloud/initial-state'
import { translate as t } from '@nextcloud/l10n'
import { defineComponent } from 'vue'
@@ -198,7 +197,7 @@ export default defineComponent({
},
openFile: {
- handler(open: boolean) {
+ handler() {
// wait for scrolling and updating the actions to settle
this.$nextTick(() => {
if (this.fileId && this.openFile) {
The initial state is no longer used, it was only used in legacy UI and in the f2v rewrite it was only used for the `id` which can be loaded just from the URL. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
600d9de
to
46bb8ef
Compare
/backport to stable29 |
Summary
The initial state is no longer used, it was only used in legacy UI and in the f2v rewrite it was only used for the
id
which can be loaded just from the URL.Checklist