feat: ListList script setup (#2441)
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2441 Reviewed-by: konrad <k@knt.li> Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de> Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:

committed by
konrad

parent
63f2e6ba6f
commit
bbf4ef4697
@ -9,8 +9,6 @@ import type {ITask} from '@/modelTypes/ITask'
|
||||
import type {INamespace} from '@/modelTypes/INamespace'
|
||||
import type {ISubscription} from '@/modelTypes/ISubscription'
|
||||
|
||||
import {getSavedFilterIdFromListId} from '@/helpers/savedFilter'
|
||||
|
||||
export default class ListModel extends AbstractModel<IList> implements IList {
|
||||
id = 0
|
||||
title = ''
|
||||
@ -52,12 +50,4 @@ export default class ListModel extends AbstractModel<IList> implements IList {
|
||||
this.created = new Date(this.created)
|
||||
this.updated = new Date(this.updated)
|
||||
}
|
||||
|
||||
isSavedFilter() {
|
||||
return this.getSavedFilterId() > 0
|
||||
}
|
||||
|
||||
getSavedFilterId() {
|
||||
return getSavedFilterIdFromListId(this.id)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user