replaced coollightbox src by watermarked img
This commit is contained in:
@ -35,16 +35,6 @@ export default {
|
||||
// actions
|
||||
actions: {
|
||||
getItems ({ dispatch, commit, state }) {
|
||||
// if(!state.contenttype){
|
||||
// REST.get('/entity/node_type/article?_format=json', {})
|
||||
// .then(({ data }) => {
|
||||
// console.log('blabla REST contenttype : data', data);
|
||||
// })
|
||||
// .catch(( error ) => {
|
||||
// console.warn('Issue with blabla contenttype', error)
|
||||
// Promise.reject(error)
|
||||
// })
|
||||
// }
|
||||
return REST.get(`/blabla_rest?_format=json&page=${state.page}`, {})
|
||||
.then(({ data }) => {
|
||||
console.log('blabla REST: data', data)
|
||||
@ -70,8 +60,8 @@ export default {
|
||||
getItemIndex ({ dispatch, commit, state }, nid) {
|
||||
console.log('getItemIndex nid', nid)
|
||||
return state.items.findIndex((e) => {
|
||||
// console.log('findIndex', e, nid);
|
||||
return e.nid === nid
|
||||
console.log('findIndex', e.nid, nid);
|
||||
return e.nid == nid
|
||||
})
|
||||
},
|
||||
getPrevNextItems ({ dispatch, commit, state }, index) {
|
||||
|
Reference in New Issue
Block a user