Skip to content

Commit

Permalink
fix: fix lint warnings (#2976)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerahikada committed Feb 9, 2024
1 parent dfad873 commit fe5ca74
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
7 changes: 6 additions & 1 deletion frontend/src/components/files/ListingItem.vue
Expand Up @@ -191,7 +191,12 @@ export default {
action(overwrite, rename);
},
itemClick: function (event) {
if (!(event.ctrlKey || event.metaKey) && this.singleClick && !this.$store.state.multiple) this.open();
if (
!(event.ctrlKey || event.metaKey) &&
this.singleClick &&
!this.$store.state.multiple
)
this.open();
else this.click(event);
},
click: function (event) {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/prompts/Copy.vue
Expand Up @@ -12,15 +12,15 @@

<div
class="card-action"
style="display: flex; align-items: center; justify-content: space-between;"
style="display: flex; align-items: center; justify-content: space-between"
>
<template v-if="user.perm.create">
<button
class="button button--flat"
@click="$refs.fileList.createDir()"
:aria-label="$t('sidebar.newFolder')"
:title="$t('sidebar.newFolder')"
style="justify-self: left;"
style="justify-self: left"
>
<span>{{ $t("sidebar.newFolder") }}</span>
</button>
Expand Down
7 changes: 3 additions & 4 deletions frontend/src/components/prompts/Info.vue
Expand Up @@ -133,14 +133,13 @@ export default {
: this.req.items[this.selected[0]].isDir)
);
},
resolution: function() {
resolution: function () {
if (this.selectedCount === 1) {
const selectedItem = this.req.items[this.selected[0]];
if (selectedItem && selectedItem.type === 'image') {
if (selectedItem && selectedItem.type === "image") {
return selectedItem.resolution;
}
}
else if (this.req && this.req.type === 'image') {
} else if (this.req && this.req.type === "image") {
return this.req.resolution;
}
return null;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/prompts/Move.vue
Expand Up @@ -11,15 +11,15 @@

<div
class="card-action"
style="display: flex; align-items: center; justify-content: space-between;"
style="display: flex; align-items: center; justify-content: space-between"
>
<template v-if="user.perm.create">
<button
class="button button--flat"
@click="$refs.fileList.createDir()"
:aria-label="$t('sidebar.newFolder')"
:title="$t('sidebar.newFolder')"
style="justify-self: left;"
style="justify-self: left"
>
<span>{{ $t("sidebar.newFolder") }}</span>
</button>
Expand Down

0 comments on commit fe5ca74

Please sign in to comment.