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