exif-edit: do not query tags
parent
ecc4bd0b34
commit
efdb4c726f
|
@ -182,7 +182,8 @@ class ImageController extends ApiBase
|
|||
public function info(
|
||||
string $id,
|
||||
bool $basic = false,
|
||||
bool $current = false
|
||||
bool $current = false,
|
||||
bool $tags = false
|
||||
): JSONResponse {
|
||||
$file = $this->getUserFile((int) $id);
|
||||
if (!$file) {
|
||||
|
@ -193,7 +194,7 @@ class ImageController extends ApiBase
|
|||
$info = $this->timelineQuery->getInfoById($file->getId(), $basic);
|
||||
|
||||
// Get list of tags for this file
|
||||
if (!$basic) {
|
||||
if ($tags) {
|
||||
$info['tags'] = $this->getTags($file->getId());
|
||||
}
|
||||
|
||||
|
|
|
@ -302,7 +302,7 @@ export default defineComponent({
|
|||
this.exif = {};
|
||||
|
||||
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);
|
||||
if (state !== this.state) return;
|
||||
|
||||
|
@ -321,12 +321,6 @@ export default defineComponent({
|
|||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.outer {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.top-field {
|
||||
margin: 10px;
|
||||
margin-bottom: 25px;
|
||||
|
|
|
@ -104,6 +104,17 @@ aside.app-sidebar {
|
|||
-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
|
||||
[role="note"].empty-content {
|
||||
width: 100%;
|
||||
|
|
Loading…
Reference in New Issue