exif-edit: do not query tags

pull/461/head
Varun Patil 2023-03-07 19:12:43 -08:00
parent ecc4bd0b34
commit efdb4c726f
3 changed files with 15 additions and 9 deletions

View File

@ -182,7 +182,8 @@ class ImageController extends ApiBase
public function info( public function info(
string $id, string $id,
bool $basic = false, bool $basic = false,
bool $current = false bool $current = false,
bool $tags = false
): JSONResponse { ): JSONResponse {
$file = $this->getUserFile((int) $id); $file = $this->getUserFile((int) $id);
if (!$file) { if (!$file) {
@ -193,7 +194,7 @@ class ImageController extends ApiBase
$info = $this->timelineQuery->getInfoById($file->getId(), $basic); $info = $this->timelineQuery->getInfoById($file->getId(), $basic);
// Get list of tags for this file // Get list of tags for this file
if (!$basic) { if ($tags) {
$info['tags'] = $this->getTags($file->getId()); $info['tags'] = $this->getTags($file->getId());
} }

View File

@ -302,7 +302,7 @@ export default defineComponent({
this.exif = {}; this.exif = {};
const state = this.state; const state = this.state;
const url = API.IMAGE_INFO(fileInfo.id); const url = API.Q(API.IMAGE_INFO(fileInfo.id), "tags=1");
const res = await axios.get<any>(url); const res = await axios.get<any>(url);
if (state !== this.state) return; if (state !== this.state) return;
@ -321,12 +321,6 @@ export default defineComponent({
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.outer {
height: 100%;
overflow-y: auto;
overflow-x: hidden;
}
.top-field { .top-field {
margin: 10px; margin: 10px;
margin-bottom: 25px; margin-bottom: 25px;

View File

@ -104,6 +104,17 @@ aside.app-sidebar {
-ms-overflow-style: none; -ms-overflow-style: none;
} }
// Make metadata tab scrollbar thin
#tab-memories-metadata {
scrollbar-width: thin;
&::-webkit-scrollbar {
width: 5px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
}
// Make sure empty content is full width // Make sure empty content is full width
[role="note"].empty-content { [role="note"].empty-content {
width: 100%; width: 100%;