fixed all eslint errors and warning, compiled as PROD
This commit is contained in:
@@ -140,14 +140,14 @@ export default {
|
||||
this.is_creating_folder = true;
|
||||
this.createFlagColl(this.new_folder_name)
|
||||
.then(data => {
|
||||
console.log("Card onCreateFlagColl then", data);
|
||||
console.log("Card onCreateFlagColl then", data)
|
||||
this.new_folder_name = "";
|
||||
this.is_creating_folder = false;
|
||||
let collid = data.id
|
||||
this.loadingFlag = collid;
|
||||
this.flagUnflag({ action: 'flag', id: this.item.id, collid: collid})
|
||||
.then(data => {
|
||||
console.log("onFlagActionCard then", data);
|
||||
console.log("onFlagActionCard then", data)
|
||||
this.loadingFlag = false;
|
||||
})
|
||||
})
|
||||
@@ -158,27 +158,27 @@ export default {
|
||||
// this.flagcolls[collid].items,
|
||||
// this.flagcolls[collid].items.indexOf(this.item.id)
|
||||
// );
|
||||
// console.log(this.flagcolls[collid].items_uuids);
|
||||
// console.log(this.flagcolls[collid].items_uuids)
|
||||
// return this.flagcolls[collid].items_uuids.indexOf(this.item.uuid) !== -1;
|
||||
return this.flagcolls[collid].items.indexOf(this.item.id) !== -1;
|
||||
},
|
||||
flagIsLoading(collid) {
|
||||
// console.log(this.item.uuid);
|
||||
// console.log(this.flagcolls[collid].items_uuids);
|
||||
// console.log(this.item.uuid)
|
||||
// console.log(this.flagcolls[collid].items_uuids)
|
||||
return collid === this.loadingFlag;
|
||||
},
|
||||
onFlagActionCard (e) {
|
||||
console.log("Card onFlagActionCard", e, this.item);
|
||||
console.log("Card onFlagActionCard", e, this.item)
|
||||
if (!this.loadingFlag) {
|
||||
let collid = e.target.getAttribute('collid');
|
||||
let isActive = this.flagIsActive(collid);
|
||||
let action = isActive ? 'unflag' : 'flag';
|
||||
// console.log('collid', collid);
|
||||
// console.log("this.item", this.item);
|
||||
// console.log('collid', collid)
|
||||
// console.log("this.item", this.item)
|
||||
this.loadingFlag = collid;
|
||||
this.flagUnflag({ action: action, id: this.item.id, collid: collid})
|
||||
.then(data => {
|
||||
console.log("onFlagActionCard then", data);
|
||||
console.log("onFlagActionCard then", data)
|
||||
this.loadingFlag = false;
|
||||
})
|
||||
}
|
||||
@@ -187,8 +187,8 @@ export default {
|
||||
// this.lightbox_index = index
|
||||
// },
|
||||
openModalCard (e) {
|
||||
console.log('openModalCard', this.isLoggedin);
|
||||
if(this.isloggedin){
|
||||
console.log('openModalCard', this.isLoggedin)
|
||||
if (this.isloggedin) {
|
||||
this.$modal.show(
|
||||
ModalCard,
|
||||
{
|
||||
|
Reference in New Issue
Block a user