1
0

feat: grid for list cards

This commit is contained in:
Dominik Pschenitschni
2022-11-15 17:25:52 +01:00
parent 4b47478440
commit 42e9f306e8
9 changed files with 340 additions and 285 deletions

View File

@ -39,8 +39,8 @@ export default class ListService extends AbstractService<IList> {
return list
}
async background(list) {
if (list.background === null) {
async background(list: Pick<IList, 'id' | 'backgroundInformation'>) {
if (list.backgroundInformation === null) {
return ''
}
@ -52,7 +52,7 @@ export default class ListService extends AbstractService<IList> {
return window.URL.createObjectURL(new Blob([response.data]))
}
async removeBackground(list) {
async removeBackground(list: Pick<IList, 'id'>) {
const cancel = this.setLoading()
try {