Removes some console.logs.

This commit is contained in:
mateuswetah 2022-08-04 16:54:10 -03:00
parent 2bb8027f29
commit 1a3be36e60
5 changed files with 21 additions and 16 deletions

View File

@ -36,7 +36,8 @@ export const translationStrings = {
label_option_delete_item: 'Send item to trash',
error_label_fetch_collections: 'Collections loading error',
error_label_fetch_items_collections: 'Items collections loading error',
error_label_fetch_items: 'Items loading error'
error_label_fetch_items: 'Items loading error',
error_delete_item: 'Error while deleting item'
},
pt: {
collections: "Coleções",
@ -75,6 +76,7 @@ export const translationStrings = {
label_option_delete_item: 'Enviar item para lixeira',
error_label_fetch_collections: 'Erro no carregamento das coleções',
error_label_fetch_items_collections: 'Erro no carregamento dos itens da coleção',
error_label_fetch_items: 'Erro no carregamento dos itens'
error_label_fetch_items: 'Erro no carregamento dos itens',
error_delete_item: 'Erro ao tentar remover item'
}
}

View File

@ -41,7 +41,7 @@ import {
} from '../store/storeTainacan';
import { useWpStore } from '../store/storeWp';
import { ref, defineComponent } from 'vue';
import { add, documentOutline, documentsOutline } from "ionicons/icons";
import { add, documentOutline } from "ionicons/icons";
import {
IonLoading,
IonRefresher,
@ -182,8 +182,8 @@ export default defineComponent({
],
});
await actionSheet.present();
const { role, data } = await actionSheet.onDidDismiss();
console.log('onDidDismiss resolved with role and data', role, data);
//const { role, data } = await actionSheet.onDidDismiss();
// console.log('onDidDismiss resolved with role and data', role, data);
}
let tainacanStore = useTainacanStore();

View File

@ -112,7 +112,7 @@ export default {
}
},
async handleBrowserLoadStop(event: InAppBrowserEvent) {
console.log(event)
// console.log(event)
if (
event.url &&
typeof event.url == "string" &&

View File

@ -50,7 +50,7 @@ const useTainacanStore = defineStore("tainacan", {
this.totalCollections = 0;
this.errorMessage = "error_label_fetch_collections";
this.errorStatus = true;
console.error("Collections loading error: ", err);
// console.error("Collections loading error: ", err);
return err;
}
},
@ -76,7 +76,7 @@ const useTainacanStore = defineStore("tainacan", {
this.totalHomeCollections = 0;
this.errorMessage = "error_label_fetch_collections";
this.errorStatus = true;
console.error("Home collections loading error: ", err);
//console.error("Home collections loading error: ", err);
return err;
}
},
@ -127,7 +127,7 @@ const useTainacanStore = defineStore("tainacan", {
this.nextItemsByCollectionPage = 1;
this.errorMessage = "error_label_fetch_items_collections";
this.errorStatus = true;
console.error("Items collections loading error: ", err);
//console.error("Items collections loading error: ", err);
return false;
}
},
@ -152,7 +152,7 @@ const useTainacanStore = defineStore("tainacan", {
this.totalHomeItems = 0;
this.errorMessage = "error_label_fetch_items_collections";
this.errorStatus = true;
console.error("Items collections loading error: ", err);
//console.error("Items collections loading error: ", err);
return err;
}
},
@ -199,7 +199,7 @@ const useTainacanStore = defineStore("tainacan", {
this.nextItemsPage = 1;
this.errorMessage = "error_label_fetch_items";
this.errorStatus = true;
console.error("Items loading error: ", err);
//console.error("Items loading error: ", err);
return err;
}
},
@ -232,7 +232,10 @@ const useTainacanStore = defineStore("tainacan", {
}
} catch (err) {
console.error("Erro ao deletar item:", err);
//console.error("Erro ao deletar item:", err);
this.errorMessage = "error_delete_item";
this.errorStatus = true;
return err;
}
}

View File

@ -37,7 +37,7 @@ const useWpStore = defineStore("wp", {
this.userToken = "";
this.userLogin = "";
delete this.inAppBrowser;
console.error("Erro no login:", err);
//console.error("Erro no login:", err);
return err;
}
},
@ -57,7 +57,7 @@ const useWpStore = defineStore("wp", {
this.userToken = "";
this.userToken = "";
delete this.inAppBrowser;
console.error("Erro no logoff:", err);
//console.error("Erro no logoff:", err);
return err;
}
},
@ -80,7 +80,7 @@ const useWpStore = defineStore("wp", {
].endpoints.authorization;
else return false;
} catch (err) {
console.error("Error trying to fetch application authorization");
//console.error("Error trying to fetch application authorization");
return err;
}
},
@ -118,7 +118,7 @@ const useWpStore = defineStore("wp", {
);
window.history.go(0);
} catch(err){
console.log('catch', err);
//console.log('catch', err);
}`;
this.inAppBrowser.executeScript({ code: urlRedirectionScript });