2020-10-19 14:48:21 +02:00
|
|
|
|
2021-12-21 14:41:50 +01:00
|
|
|
import List from '../../../schemas/list/list';
|
|
|
|
|
import api from '../api';
|
2020-10-19 14:48:21 +02:00
|
|
|
|
|
|
|
|
const list = new List('translations');
|
|
|
|
|
const prefix = '@translation.fields.';
|
|
|
|
|
|
|
|
|
|
list.templateLabel = x => prefix + x;
|
2021-12-21 14:41:50 +01:00
|
|
|
list.link = 'translations-edit';
|
2020-10-19 14:48:21 +02:00
|
|
|
|
2021-12-21 14:41:50 +01:00
|
|
|
list.onFetch(filter => api.getByQuery(filter));
|
2020-10-19 14:48:21 +02:00
|
|
|
|
2021-10-11 15:15:55 +02:00
|
|
|
list.column('key', { width: 420 }).name();
|
2020-10-19 14:48:21 +02:00
|
|
|
list.column('value').text();
|
|
|
|
|
|
|
|
|
|
export default list;
|