1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-11-24 08:22:29 +02:00

Text and image blocks

This commit is contained in:
Chen-I Lim 2020-10-20 21:21:23 -07:00
parent 4ae88bee0b
commit 7df22fecdb
2 changed files with 1 additions and 15 deletions

View File

@ -3,17 +3,10 @@
import { IOrderedBlock, MutableOrderedBlock } from './orderedBlock'
interface ImageBlock extends IOrderedBlock {
readonly url: string
}
class MutableImageBlock extends MutableOrderedBlock implements IOrderedBlock {
get order(): number {
return this.fields.order as number
}
set order(value: number) {
this.fields.order = value
}
get url(): string {
return this.fields.url as string
}

View File

@ -7,13 +7,6 @@ interface TextBlock extends IOrderedBlock {
}
class MutableTextBlock extends MutableOrderedBlock {
get order(): number {
return this.fields.order as number
}
set order(value: number) {
this.fields.order = value
}
constructor(block: any = {}) {
super(block)
this.type = 'text'