Frontend: Exclude unused code from link.js

This commit is contained in:
Theresa Gresch 2020-07-03 16:40:52 +02:00
parent ccdc709e8e
commit 7be7ac3ae7

View file

@ -90,7 +90,7 @@ export default class Link extends Model {
return new this.constructor(this.getValues());
}
find(id, params) {
/*find(id, params) {
return Api.get(this.getEntityResource(id), params).then((response) => Promise.resolve(new this.constructor(response.data)));
}
@ -108,7 +108,7 @@ export default class Link extends Model {
remove() {
return Api.delete(this.getEntityResource()).then(() => Promise.resolve(this));
}
}*/
expires() {
return DateTime.fromISO(this.UpdatedAt).plus({ seconds: this.Expires }).toLocaleString(DateTime.DATE_SHORT);