Rename ImageView to ThumbnailView to make room for AttachmentImageView
This commit is contained in:
parent
32813ec80b
commit
84c141a9b3
@ -1,6 +1,6 @@
|
|||||||
import { defineView, defineElement as el } from 'domvm';
|
import { defineView, defineElement as el } from 'domvm';
|
||||||
import * as image from '../data/image.js';
|
import * as image from '../data/image.js';
|
||||||
import { ImageView } from './image.js';
|
import { ThumbnailView } from './thumbnail.js';
|
||||||
import { LiveArray } from '../utils/livearray.js';
|
import { LiveArray } from '../utils/livearray.js';
|
||||||
|
|
||||||
export function AlbumView(vm, model) {
|
export function AlbumView(vm, model) {
|
||||||
@ -37,7 +37,7 @@ export function AlbumView(vm, model) {
|
|||||||
el('h2', [title]),
|
el('h2', [title]),
|
||||||
...images.map(i => {
|
...images.map(i => {
|
||||||
return defineView(
|
return defineView(
|
||||||
ImageView,
|
ThumbnailView,
|
||||||
{
|
{
|
||||||
doc: i,
|
doc: i,
|
||||||
showTags: false,
|
showTags: false,
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { defineView } from 'domvm';
|
|||||||
import * as image from '../data/image.js';
|
import * as image from '../data/image.js';
|
||||||
import * as index from '../data/indexType.js';
|
import * as index from '../data/indexType.js';
|
||||||
import * as imageTag from '../context/manageImageTags.js';
|
import * as imageTag from '../context/manageImageTags.js';
|
||||||
import { ImageView } from './image.js';
|
import { ThumbnailView } from './thumbnail.js';
|
||||||
import { AlbumView } from './album.js';
|
import { AlbumView } from './album.js';
|
||||||
import { router, routeChanged } from '../services/router.js';
|
import { router, routeChanged } from '../services/router.js';
|
||||||
import { styled, el } from '../services/style.js';
|
import { styled, el } from '../services/style.js';
|
||||||
@ -64,7 +64,7 @@ export function GalleryView(vm, model) {
|
|||||||
...(title === 'Images'
|
...(title === 'Images'
|
||||||
? members.map(i => {
|
? members.map(i => {
|
||||||
return defineView(
|
return defineView(
|
||||||
ImageView,
|
ThumbnailView,
|
||||||
{
|
{
|
||||||
doc: i,
|
doc: i,
|
||||||
showTags: true,
|
showTags: true,
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { prop, computed } from 'frptools';
|
|||||||
|
|
||||||
import * as image from '../data/image.js';
|
import * as image from '../data/image.js';
|
||||||
|
|
||||||
export function ImageView(vm, model) {
|
export function ThumbnailView(vm, model) {
|
||||||
const { addTag } = model;
|
const { addTag } = model;
|
||||||
const imageData = prop(null);
|
const imageData = prop(null);
|
||||||
let imageId = null;
|
let imageId = null;
|
||||||
Loading…
x
Reference in New Issue
Block a user